Fixed issue with .remove() not working correctly.
This commit is contained in:
parent
f7efcc858d
commit
f404d2c395
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -2549,7 +2549,7 @@ jQuery.macros = {
|
||||||
* @cat DOM/Manipulation
|
* @cat DOM/Manipulation
|
||||||
*/
|
*/
|
||||||
remove: function(a){
|
remove: function(a){
|
||||||
if ( !a || jQuery.filter( [this], a ).r )
|
if ( !a || jQuery.filter( a, [this] ).r )
|
||||||
this.parentNode.removeChild( this );
|
this.parentNode.removeChild( this );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue