Bug 730596 - Make the HTML Panel context menu more generic (should work even if the HTML Panel is closed); r=rcampbell

This commit is contained in:
Paul Rouget 2012-02-25 20:08:37 +01:00
parent 0ff3ebb15f
commit f2d5d6620b

View File

@ -870,7 +870,8 @@ InspectorUI.prototype = {
let parent = this.selection.parentNode;
// remove the node from the treepanel
this.treePanel.deleteChildBox(selection);
if (this.treePanel.isOpen())
this.treePanel.deleteChildBox(selection);
// remove the node from content
parent.removeChild(selection);