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
1 changed files with 2 additions and 1 deletions
|
@ -1268,7 +1268,8 @@ jQuery.each({
|
||||||
jQuery.event.remove(this);
|
jQuery.event.remove(this);
|
||||||
jQuery.removeData(this);
|
jQuery.removeData(this);
|
||||||
});
|
});
|
||||||
this.parentNode.removeChild( this );
|
if (this.parentNode)
|
||||||
|
this.parentNode.removeChild( this );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue