From b534ee2ccf3c9d19d78a79bfba2cd33a9754ba5b Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Sun, 8 Sep 2013 21:25:27 -0400 Subject: [PATCH] Always return jQuery in modules that can be included separately --- src/attributes.js | 6 +++++- src/callbacks.js | 1 + src/css.js | 1 + src/data.js | 1 + src/deferred.js | 2 ++ src/dimensions.js | 2 ++ src/effects.js | 2 +- src/event.js | 1 + src/manipulation.js | 2 ++ src/offset.js | 1 + src/queue.js | 1 + src/serialize.js | 2 ++ src/traversing.js | 2 ++ src/wrap.js | 2 ++ 14 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/attributes.js b/src/attributes.js index 82a806630..e24feeae2 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -1,6 +1,10 @@ define([ + "./core", "./attributes/attr", "./attributes/prop", "./attributes/classes", "./attributes/val" -]); +], function( jQuery ) { + // Return jQuery for attributes-only inclusion + return jQuery; +}); diff --git a/src/callbacks.js b/src/callbacks.js index fd80bd905..ed725b498 100644 --- a/src/callbacks.js +++ b/src/callbacks.js @@ -201,4 +201,5 @@ jQuery.Callbacks = function( options ) { return self; }; +return jQuery; }); diff --git a/src/css.js b/src/css.js index 372924d06..3ead83967 100644 --- a/src/css.js +++ b/src/css.js @@ -529,4 +529,5 @@ jQuery.each({ } }); +return jQuery; }); diff --git a/src/data.js b/src/data.js index db34e2dee..f86f9398a 100644 --- a/src/data.js +++ b/src/data.js @@ -171,4 +171,5 @@ function dataAttr( elem, key, data ) { return data; } +return jQuery; }); diff --git a/src/deferred.js b/src/deferred.js index 7ba164a8f..1c2f87e86 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -144,4 +144,6 @@ jQuery.extend({ return deferred.promise(); } }); + +return jQuery; }); diff --git a/src/dimensions.js b/src/dimensions.js index 7fc766452..60a0a87aa 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -43,4 +43,6 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { }; }); }); + +return jQuery; }); diff --git a/src/effects.js b/src/effects.js index 54905307d..64e4161bc 100644 --- a/src/effects.js +++ b/src/effects.js @@ -627,5 +627,5 @@ jQuery.fx.speeds = { _default: 400 }; - +return jQuery; }); diff --git a/src/event.js b/src/event.js index dfe923d51..bd389ba97 100644 --- a/src/event.js +++ b/src/event.js @@ -844,4 +844,5 @@ jQuery.fn.extend({ } }); +return jQuery; }); diff --git a/src/manipulation.js b/src/manipulation.js index f47cdec38..1bae4f3db 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -580,4 +580,6 @@ function fixInput( src, dest ) { dest.defaultValue = src.defaultValue; } } + +return jQuery; }); diff --git a/src/offset.js b/src/offset.js index 386109506..17072393e 100644 --- a/src/offset.js +++ b/src/offset.js @@ -178,4 +178,5 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me }; }); +return jQuery; }); diff --git a/src/queue.js b/src/queue.js index 62f08bf01..f72c5adac 100644 --- a/src/queue.js +++ b/src/queue.js @@ -138,4 +138,5 @@ jQuery.fn.extend({ } }); +return jQuery; }); diff --git a/src/serialize.js b/src/serialize.js index 369f63e74..f6deece83 100644 --- a/src/serialize.js +++ b/src/serialize.js @@ -104,4 +104,6 @@ function buildParams( prefix, obj, traditional, add ) { add( prefix, obj ); } } + +return jQuery; }); diff --git a/src/traversing.js b/src/traversing.js index 94378a597..12fd74deb 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -286,4 +286,6 @@ function winnow( elements, qualifier, not ) { return ( indexOf.call( qualifier, elem ) >= 0 ) !== not; }); } + +return jQuery; }); diff --git a/src/wrap.js b/src/wrap.js index 1859dca11..7b2ea6ac1 100644 --- a/src/wrap.js +++ b/src/wrap.js @@ -71,4 +71,6 @@ jQuery.fn.extend({ }).end(); } }); + +return jQuery; }); -- 2.39.5