Bug 1214754 - Clear hovered element's highlight when console is cleared. r=bgrins

This commit is contained in:
Greg Tatum 2016-05-11 06:16:00 +02:00
parent 91dae1cb08
commit 6a1246bf3e

View File

@ -3356,8 +3356,16 @@ Widgets.ObjectRenderers.add({
this.element.removeEventListener("mouseover", this.highlightDomNode, false);
this.element.removeEventListener("mouseout", this.unhighlightDomNode, false);
this._openInspectorNode.removeEventListener("mousedown", this.openNodeInInspector, true);
this.toolbox = null;
this._nodeFront = null;
if (this._linkedToInspector) {
this.unhighlightDomNode().then(() => {
this.toolbox = null;
this._nodeFront = null;
});
} else {
this.toolbox = null;
this._nodeFront = null;
}
}
},
}); // Widgets.ObjectRenderers.byKind.DOMNode