Fix usage of area.type to use a map's get() function, no bug, rs=mconley

This commit is contained in:
Gijs Kruitbosch 2013-08-02 16:04:40 +02:00
parent 966d46482c
commit 03301f5a46

View File

@ -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);
}
}