aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-04-25 18:26:36 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-06-10 23:28:14 -0400
commitd837f119c3729565103005d5d7fa89e1dd8110cb (patch)
tree03f41c64a16faab49698d7fa6c2519c79874d706 /src/traversing.js
parentff9dcfb0c4238d405af92cbd4ac27e0a36c6ff0c (diff)
downloadjquery-d837f119c3729565103005d5d7fa89e1dd8110cb.tar.gz
jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.zip
Support: clean up comments and Support notation
Closes gh-1577
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js7
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 ] );
}