| Index: lib/customizableUI.js |
| =================================================================== |
| --- a/lib/customizableUI.js |
| +++ b/lib/customizableUI.js |
| @@ -21,17 +21,17 @@ |
| let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", null); |
| let {Utils} = require("utils"); |
| // UI module has to be referenced lazily to avoid circular references |
| XPCOMUtils.defineLazyGetter(this, "UI", () => require("ui").UI); |
| -let widgets = Map(); |
| +let widgets = new Map(); |
| function getToolbox(/**Window*/ window, /**Widget*/ widget) /**Element*/ |
| { |
| if (!("defaultArea" in widget) || !widget.defaultArea) |
| return null; |
| let toolbar = UI.findElement(window, widget.defaultArea); |
| if (!toolbar) |