diff options
author | jeresig <jeresig@gmail.com> | 2011-04-10 16:32:40 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2011-04-10 16:32:40 -0400 |
commit | 52f31054fd97e20ba423d406a484885b2639178c (patch) | |
tree | c4765eccd03210476b68511533f0f6ebdcf9e128 /src/traversing.js | |
parent | b8fd1f03a6667079f28ce3768e743457a6f33958 (diff) | |
download | jquery-52f31054fd97e20ba423d406a484885b2639178c.tar.gz jquery-52f31054fd97e20ba423d406a484885b2639178c.zip |
Fix formatting.
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index c46ce45fe..6a971402e 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -60,7 +60,8 @@ jQuery.fn.extend({ }, is: function( selector ) { - return !!selector && (typeof selector === "string" ? jQuery.filter( selector, this ).length > 0 : + return !!selector && (typeof selector === "string" ? + jQuery.filter( selector, this ).length > 0 : this.filter( selector ).length > 0); }, |