Merge pull request #2044 from ether/ff-del-firstchar
dont error when pressing del on rep 0 0
This commit is contained in:
commit
1c2f05cb96
|
@ -1668,7 +1668,7 @@ function Ace2Inner(){
|
|||
{
|
||||
//var id = n.uniqueId();
|
||||
// parent of n may not be "root" in IE due to non-tree-shaped DOM (wtf)
|
||||
n.parentNode.removeChild(n);
|
||||
if(n.parentNode) n.parentNode.removeChild(n);
|
||||
|
||||
//dmesg(htmlPrettyEscape(htmlForRemovedChild(n)));
|
||||
//console.log("removed: "+id);
|
||||
|
|
Loading…
Reference in New Issue