mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix usage of area.type to use a map's get() function, no bug, rs=mconley
This commit is contained in:
parent
966d46482c
commit
03301f5a46
@ -525,7 +525,7 @@ let CustomizableUIInternal = {
|
|||||||
: null;
|
: null;
|
||||||
this.insertWidgetBefore(widgetNode, nextNode, container, aArea);
|
this.insertWidgetBefore(widgetNode, nextNode, container, aArea);
|
||||||
this._addParentFlex(widgetNode);
|
this._addParentFlex(widgetNode);
|
||||||
if (area.type == this.TYPE_TOOLBAR) {
|
if (area.get("type") == this.TYPE_TOOLBAR) {
|
||||||
areaNode.setAttribute("currentset", areaNode.currentSet);
|
areaNode.setAttribute("currentset", areaNode.currentSet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -568,7 +568,7 @@ let CustomizableUIInternal = {
|
|||||||
}
|
}
|
||||||
areaNode.toolbox.palette.appendChild(widgetNode);
|
areaNode.toolbox.palette.appendChild(widgetNode);
|
||||||
}
|
}
|
||||||
if (area.type == this.TYPE_TOOLBAR) {
|
if (area.get("type") == this.TYPE_TOOLBAR) {
|
||||||
areaNode.setAttribute("currentset", areaNode.currentSet);
|
areaNode.setAttribute("currentset", areaNode.currentSet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -611,7 +611,7 @@ let CustomizableUIInternal = {
|
|||||||
let nextNode = nextNodeId ? container.querySelector(idToSelector(nextNodeId))
|
let nextNode = nextNodeId ? container.querySelector(idToSelector(nextNodeId))
|
||||||
: null;
|
: null;
|
||||||
this.insertWidgetBefore(widgetNode, nextNode, container, aArea);
|
this.insertWidgetBefore(widgetNode, nextNode, container, aArea);
|
||||||
if (area.type == this.TYPE_TOOLBAR) {
|
if (area.get("type") == this.TYPE_TOOLBAR) {
|
||||||
areaNode.setAttribute("currentset", areaNode.currentSet);
|
areaNode.setAttribute("currentset", areaNode.currentSet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user