diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-04-02 13:12:57 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-04-05 21:03:41 -0400 |
commit | 590bcab245d969dffc3c61b7679ab4d1a9a26ebd (patch) | |
tree | 9234c53cadc00d1525748f90e8be32a6140aec9e /src/traversing.js | |
parent | c04bfce556616a60cecf0ecaf9cb1f9d048a4747 (diff) | |
download | jquery-590bcab245d969dffc3c61b7679ab4d1a9a26ebd.tar.gz jquery-590bcab245d969dffc3c61b7679ab4d1a9a26ebd.zip |
Fix #11543: .has should work on detached elements.
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index 08c95ec4a..2e45aade7 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -54,7 +54,7 @@ jQuery.fn.extend({ }, has: function( target ) { - var targets = jQuery( target ); + var targets = jQuery( target, this ); return this.filter(function() { for ( var i = 0, l = targets.length; i < l; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { |