aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2010-12-30 00:34:48 -0600
committerColin Snover <github.com@zetafleet.com>2010-12-30 00:34:48 -0600
commit3e0cc815043c2425819743e907a0ce263a7ce164 (patch)
tree6d579f50e3b86ab350291c0a63619ee739804f4d /src/traversing.js
parent429b078dc7b5cf7765b44c8d32e125ecd8f1e2c9 (diff)
downloadjquery-3e0cc815043c2425819743e907a0ce263a7ce164.tar.gz
jquery-3e0cc815043c2425819743e907a0ce263a7ce164.zip
Clean trailing whitespace from all files.
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/traversing.js b/src/traversing.js
index 15446bd8b..689e90196 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -51,7 +51,7 @@ jQuery.fn.extend({
filter: function( selector ) {
return this.pushStack( winnow(this, selector, true), "filter", selector );
},
-
+
is: function( selector ) {
return !!selector && jQuery.filter( selector, this ).length > 0;
},
@@ -69,7 +69,7 @@ jQuery.fn.extend({
selector = selectors[i];
if ( !matches[selector] ) {
- matches[selector] = jQuery.expr.match.POS.test( selector ) ?
+ matches[selector] = jQuery.expr.match.POS.test( selector ) ?
jQuery( selector, context || this.context ) :
selector;
}
@@ -92,7 +92,7 @@ jQuery.fn.extend({
return ret;
}
- var pos = POS.test( selectors ) ?
+ var pos = POS.test( selectors ) ?
jQuery( selectors, context || this.context ) : null;
for ( i = 0, l = this.length; i < l; i++ ) {
@@ -113,10 +113,10 @@ jQuery.fn.extend({
}
ret = ret.length > 1 ? jQuery.unique(ret) : ret;
-
+
return this.pushStack( ret, "closest", selectors );
},
-
+
// Determine the position of an element within
// the matched set of elements
index: function( elem ) {
@@ -197,7 +197,7 @@ jQuery.each({
}, function( name, fn ) {
jQuery.fn[ name ] = function( until, selector ) {
var ret = jQuery.map( this, fn, until );
-
+
if ( !runtil.test( name ) ) {
selector = until;
}
@@ -226,7 +226,7 @@ jQuery.extend({
jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
jQuery.find.matches(expr, elems);
},
-
+
dir: function( elem, dir, until ) {
var matched = [],
cur = elem[ dir ];