X Tutup
Skip to content

Commit b534ee2

Browse files
committed
Always return jQuery in modules that can be included separately
1 parent 99c123b commit b534ee2

File tree

14 files changed

+24
-2
lines changed

14 files changed

+24
-2
lines changed

src/attributes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
define([
2+
"./core",
23
"./attributes/attr",
34
"./attributes/prop",
45
"./attributes/classes",
56
"./attributes/val"
6-
]);
7+
], function( jQuery ) {
8+
// Return jQuery for attributes-only inclusion
9+
return jQuery;
10+
});

src/callbacks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,5 @@ jQuery.Callbacks = function( options ) {
201201
return self;
202202
};
203203

204+
return jQuery;
204205
});

src/css.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,4 +529,5 @@ jQuery.each({
529529
}
530530
});
531531

532+
return jQuery;
532533
});

src/data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,5 @@ function dataAttr( elem, key, data ) {
171171
return data;
172172
}
173173

174+
return jQuery;
174175
});

src/deferred.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,6 @@ jQuery.extend({
144144
return deferred.promise();
145145
}
146146
});
147+
148+
return jQuery;
147149
});

src/dimensions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
4343
};
4444
});
4545
});
46+
47+
return jQuery;
4648
});

src/effects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,5 +627,5 @@ jQuery.fx.speeds = {
627627
_default: 400
628628
};
629629

630-
630+
return jQuery;
631631
});

src/event.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,4 +844,5 @@ jQuery.fn.extend({
844844
}
845845
});
846846

847+
return jQuery;
847848
});

src/manipulation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,4 +580,6 @@ function fixInput( src, dest ) {
580580
dest.defaultValue = src.defaultValue;
581581
}
582582
}
583+
584+
return jQuery;
583585
});

src/offset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,5 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me
178178
};
179179
});
180180

181+
return jQuery;
181182
});

0 commit comments

Comments
 (0)
X Tutup