mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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 New Issue
Block a user