Fix an observer never being removed, found in bug 897410, r=mikedeboer

This commit is contained in:
Gijs Kruitbosch 2013-07-24 15:29:32 +02:00
parent e8483bc04f
commit cf893271fe

View File

@ -412,6 +412,7 @@ const CustomizableWidgets = [{
CustomizableUI.removeListener(listener);
Services.obs.removeObserver(updateZoomResetButton, "browser-fullZoom:zoomChange");
Services.obs.removeObserver(updateZoomResetButton, "browser-fullZoom:zoomReset");
Services.obs.removeObserver(updateZoomResetButton, "browser-fullZoom:locationChange");
}.bind(this)
};
CustomizableUI.addListener(listener);