Skip to content
Permalink
Browse files

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

…void errors as seen in bug #1742.
  • Loading branch information
davids549 committed Nov 5, 2007
1 parent 98204c7 commit a613a70fdb87163efa25a2d853cb9ed736d8cc39
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core.js
@@ -1268,7 +1268,8 @@ jQuery.each({
jQuery.event.remove(this);
jQuery.removeData(this);
});
this.parentNode.removeChild( this );
if (this.parentNode)
this.parentNode.removeChild( this );
}
},

0 comments on commit a613a70

Please sign in to comment.
You can’t perform that action at this time.