Bug 1385083 - Name and use the event argument appropriately by fixing a typo. r?Gijs
MozReview-Commit-ID: E9B6EXnuAFv
--- a/browser/components/customizableui/CustomizableWidgets.jsm
+++ b/browser/components/customizableui/CustomizableWidgets.jsm
@@ -170,17 +170,17 @@ const CustomizableWidgets = [
break;
case "ViewShowing":
this.onSubViewShowing(event);
break;
default:
throw new Error(`Unsupported event for '${this.id}'`);
}
},
- onViewShowing(aEvent) {
+ onViewShowing(event) {
if (this._panelMenuView)
return;
let panelview = event.target;
let document = panelview.ownerDocument;
let window = document.defaultView;
// We restrict the amount of results to 42. Not 50, but 42. Why? Because 42.