From 03301f5a46bb663f352846a3a17c55c218384023 Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Fri, 2 Aug 2013 16:04:40 +0200 Subject: [PATCH] Fix usage of area.type to use a map's get() function, no bug, rs=mconley --- browser/components/customizableui/src/CustomizableUI.jsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/components/customizableui/src/CustomizableUI.jsm b/browser/components/customizableui/src/CustomizableUI.jsm index 21fff255b69..ada600e2b5b 100644 --- a/browser/components/customizableui/src/CustomizableUI.jsm +++ b/browser/components/customizableui/src/CustomizableUI.jsm @@ -525,7 +525,7 @@ let CustomizableUIInternal = { : null; this.insertWidgetBefore(widgetNode, nextNode, container, aArea); this._addParentFlex(widgetNode); - if (area.type == this.TYPE_TOOLBAR) { + if (area.get("type") == this.TYPE_TOOLBAR) { areaNode.setAttribute("currentset", areaNode.currentSet); } } @@ -568,7 +568,7 @@ let CustomizableUIInternal = { } areaNode.toolbox.palette.appendChild(widgetNode); } - if (area.type == this.TYPE_TOOLBAR) { + if (area.get("type") == this.TYPE_TOOLBAR) { areaNode.setAttribute("currentset", areaNode.currentSet); } } @@ -611,7 +611,7 @@ let CustomizableUIInternal = { let nextNode = nextNodeId ? container.querySelector(idToSelector(nextNodeId)) : null; this.insertWidgetBefore(widgetNode, nextNode, container, aArea); - if (area.type == this.TYPE_TOOLBAR) { + if (area.get("type") == this.TYPE_TOOLBAR) { areaNode.setAttribute("currentset", areaNode.currentSet); } }