Bug 1356911 - Remove unnecessary onWidgetInstanceRemoved listener. r?jaws draft
authorDão Gottwald <dao@mozilla.com>
Thu, 20 Apr 2017 23:34:55 +0200
changeset 566099 822f0f02d8d0c81cd37ffe95fa23cad2bd9e81fc
parent 565207 ef8d16ae0d0d5d5dc09c7a0d2463bde16b31b174
child 625197 f3c7ae107faf3326e65baa04a69311b1275a7bc9
push id55089
push userdgottwald@mozilla.com
push dateThu, 20 Apr 2017 21:35:23 +0000
reviewersjaws
bugs1356911
milestone55.0a1
Bug 1356911 - Remove unnecessary onWidgetInstanceRemoved listener. r?jaws MozReview-Commit-ID: VywL0KoiMA
browser/modules/FullZoomUI.jsm
--- a/browser/modules/FullZoomUI.jsm
+++ b/browser/modules/FullZoomUI.jsm
@@ -93,18 +93,17 @@ let customizationListener = {
   onAreaNodeRegistered(aAreaType, aAreaNode) {
     if (aAreaType == CustomizableUI.AREA_PANEL) {
       updateZoomUI(aAreaNode.ownerGlobal.gBrowser.selectedBrowser);
     }
   }
 };
 customizationListener.onWidgetAdded =
 customizationListener.onWidgetRemoved =
-customizationListener.onWidgetMoved =
-customizationListener.onWidgetInstanceRemoved = function(aWidgetId) {
+customizationListener.onWidgetMoved = function(aWidgetId) {
   if (aWidgetId == "zoom-controls") {
     for (let window of CustomizableUI.windows) {
       updateZoomUI(window.gBrowser.selectedBrowser);
     }
   }
 };
 customizationListener.onWidgetReset =
 customizationListener.onWidgetUndoMove = function(aWidgetNode) {