mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1214754
- Clear hovered element's highlight when console is cleared. r=bgrins
This commit is contained in:
parent
91dae1cb08
commit
6a1246bf3e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user