mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 14:08:13 -05: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:
@@ -1268,7 +1268,8 @@ jQuery.each({
|
||||
jQuery.event.remove(this);
|
||||
jQuery.removeData(this);
|
||||
});
|
||||
this.parentNode.removeChild( this );
|
||||
if (this.parentNode)
|
||||
this.parentNode.removeChild( this );
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user