Bug 1448320 - bind onDetachedFront in RuleView constructor;r=pbro draft
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 23 Mar 2018 14:47:52 +0100
changeset 771585 6c6f668551b6e4fbdb43313d31eca83d715d4f0a
parent 771517 2b5e7c9e82a017c6b5cd78e338dce94f569b5284
push id103724
push userjdescottes@mozilla.com
push dateFri, 23 Mar 2018 13:48:34 +0000
reviewerspbro
bugs1448320
milestone61.0a1
Bug 1448320 - bind onDetachedFront in RuleView constructor;r=pbro MozReview-Commit-ID: BuOTYTuregT
devtools/client/inspector/rules/rules.js
--- a/devtools/client/inspector/rules/rules.js
+++ b/devtools/client/inspector/rules/rules.js
@@ -1624,16 +1624,17 @@ function RuleViewTool(inspector, window)
   this.inspector = inspector;
   this.document = window.document;
 
   this.view = new CssRuleView(this.inspector, this.document);
 
   this.clearUserProperties = this.clearUserProperties.bind(this);
   this.refresh = this.refresh.bind(this);
   this.onPanelSelected = this.onPanelSelected.bind(this);
+  this.onDetachedFront = this.onDetachedFront.bind(this);
   this.onSelected = this.onSelected.bind(this);
   this.onViewRefreshed = this.onViewRefreshed.bind(this);
 
   this.view.on("ruleview-refreshed", this.onViewRefreshed);
   this.inspector.selection.on("detached-front", this.onDetachedFront);
   this.inspector.selection.on("new-node-front", this.onSelected);
   this.inspector.selection.on("pseudoclass", this.refresh);
   this.inspector.target.on("navigate", this.clearUserProperties);