diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-09-08 21:25:27 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-09-08 21:25:27 -0400 |
commit | b534ee2ccf3c9d19d78a79bfba2cd33a9754ba5b (patch) | |
tree | 08cb07cce32d18f0c5dcf8bb978862436792f2f8 | |
parent | 99c123b159e85ab9d97bea65a5ec4fff62023bf9 (diff) | |
download | jquery-b534ee2ccf3c9d19d78a79bfba2cd33a9754ba5b.tar.gz jquery-b534ee2ccf3c9d19d78a79bfba2cd33a9754ba5b.zip |
Always return jQuery in modules that can be included separately
-rw-r--r-- | src/attributes.js | 6 | ||||
-rw-r--r-- | src/callbacks.js | 1 | ||||
-rw-r--r-- | src/css.js | 1 | ||||
-rw-r--r-- | src/data.js | 1 | ||||
-rw-r--r-- | src/deferred.js | 2 | ||||
-rw-r--r-- | src/dimensions.js | 2 | ||||
-rw-r--r-- | src/effects.js | 2 | ||||
-rw-r--r-- | src/event.js | 1 | ||||
-rw-r--r-- | src/manipulation.js | 2 | ||||
-rw-r--r-- | src/offset.js | 1 | ||||
-rw-r--r-- | src/queue.js | 1 | ||||
-rw-r--r-- | src/serialize.js | 2 | ||||
-rw-r--r-- | src/traversing.js | 2 | ||||
-rw-r--r-- | 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; }); |