mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added a check to make sure a parent node exists in call remove() to avoid errors as seen in bug #1742.
This commit is contained in:
parent
98204c7f60
commit
a613a70fdb
@ -1268,7 +1268,8 @@ jQuery.each({
|
||||
jQuery.event.remove(this);
|
||||
jQuery.removeData(this);
|
||||
});
|
||||
this.parentNode.removeChild( this );
|
||||
if (this.parentNode)
|
||||
this.parentNode.removeChild( this );
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user