diff options
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/traversing.js b/src/traversing.js index 943d16cb6..d9ff0aeac 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -8,7 +8,7 @@ define([ ], function( jQuery, indexOf, rneedsContext ) { var rparentsprev = /^(?:parents|prev(?:Until|All))/, - // methods guaranteed to produce a unique set when starting from a unique set + // Methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, @@ -88,8 +88,7 @@ jQuery.fn.extend({ return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); }, - // Determine the position of an element within - // the matched set of elements + // Determine the position of an element within the set index: function( elem ) { // No argument, return index in parent @@ -97,7 +96,7 @@ jQuery.fn.extend({ return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } - // index in selector + // Index in selector if ( typeof elem === "string" ) { return indexOf.call( jQuery( elem ), this[ 0 ] ); } |