Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/customizableUI.js

Issue 29327608: Issue 3072 - TypeError: calling a builtin Map constructor without new is forbidden in SeaMonkey (Closed)
Patch Set: Created Sept. 14, 2015, 6:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld