Bug 1474364 - Clear the stored flexbox highlighter shown before emitting the event. r=pbro

This commit is contained in:
Gabriel Luong 2018-07-17 12:36:47 -04:00
parent ef23676856
commit c75326a930

View File

@ -285,8 +285,9 @@ class HighlightersOverlay {
// Emit the NodeFront of the flexbox container element that the flexbox highlighter
// was hidden for.
this.emit("flexbox-highlighter-hidden", this.flexboxHighlighterShown);
const nodeFront = this.flexboxHighlighterShown;
this.flexboxHighlighterShown = null;
this.emit("flexbox-highlighter-hidden", nodeFront);
// Erase flexbox highlighter state.
this.state.flexbox = null;