aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2011-12-08 20:42:47 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-12-08 21:04:57 -0500
commit98386cfd775fdfa7837ccbec173b04f1e6d57896 (patch)
tree74783699ba88a0bf17bfb88e8b3e8141b7c868fe /src/traversing.js
parentd6500cc8ded8d3d02e19a3ab831b6b9cf43e82ae (diff)
downloadjquery-98386cfd775fdfa7837ccbec173b04f1e6d57896.tar.gz
jquery-98386cfd775fdfa7837ccbec173b04f1e6d57896.zip
Fix #10692. JSLint is dead! Long live JSHint!
Still needs this sizzle PR: https://github.com/jquery/sizzle/pull/82
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/traversing.js b/src/traversing.js
index a62bbfeb6..f06cfd92f 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -73,11 +73,11 @@ jQuery.fn.extend({
},
is: function( selector ) {
- return !!selector && (
+ return !!selector && (
typeof selector === "string" ?
// If this is a positional selector, check membership in the returned set
// so $("p:first").is("p:last") won't return true for a doc with two "p".
- POS.test( selector ) ?
+ POS.test( selector ) ?
jQuery( selector, this.context ).index( this[0] ) >= 0 :
jQuery.filter( selector, this ).length > 0 :
this.filter( selector ).length > 0 );
@@ -85,7 +85,7 @@ jQuery.fn.extend({
closest: function( selectors, context ) {
var ret = [], i, l, cur = this[0];
-
+
// Array (deprecated as of jQuery 1.7)
if ( jQuery.isArray( selectors ) ) {
var level = 1;