Made sure that .remove now uses multiFilter. Fixes bug #4205.
This commit is contained in:
parent
db62240fcf
commit
a37ca9e905
2 changed files with 5 additions and 2 deletions
|
@ -1224,7 +1224,7 @@ jQuery.each({
|
|||
},
|
||||
|
||||
remove: function( selector ) {
|
||||
if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
|
||||
if ( !selector || jQuery.multiFilter( selector, [ this ] ).length ) {
|
||||
// Prevent memory leaks
|
||||
jQuery( "*", this ).add([this]).each(function(){
|
||||
jQuery.event.remove(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue