diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
commit | 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb (patch) | |
tree | 50b247fed8569e909e380b281e9145bd1458a39e /src/traversing.js | |
parent | 7627b8b6d9ef6e57dbd20a55b946bd1991c1223e (diff) | |
download | jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.tar.gz jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.zip |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/traversing.js b/src/traversing.js index 8e305c289..94378a597 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -1,3 +1,8 @@ +define([ + "./core", + "./var/indexOf", + "./selector" +], function( jQuery, indexOf ) { var isSimple = /^.[^:#\[\.,]*$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, rneedsContext = jQuery.expr.match.needsContext, @@ -110,11 +115,11 @@ jQuery.fn.extend({ // index in selector if ( typeof elem === "string" ) { - return core_indexOf.call( jQuery( elem ), this[ 0 ] ); + return indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element - return core_indexOf.call( this, + return indexOf.call( this, // If it receives a jQuery object, the first element is used elem.jquery ? elem[ 0 ] : elem @@ -278,6 +283,7 @@ function winnow( elements, qualifier, not ) { } return jQuery.grep( elements, function( elem ) { - return ( core_indexOf.call( qualifier, elem ) >= 0 ) !== not; + return ( indexOf.call( qualifier, elem ) >= 0 ) !== not; }); } +}); |