Commit a613a70f authored by David Serduke's avatar David Serduke

Added a check to make sure a parent node exists in call remove() to avoid...

Added a check to make sure a parent node exists in call remove() to avoid errors as seen in bug #1742.
parent 98204c7f
......@@ -1268,7 +1268,8 @@ jQuery.each({
jQuery.event.remove(this);
jQuery.removeData(this);
});
this.parentNode.removeChild( this );
if (this.parentNode)
this.parentNode.removeChild( this );
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment