summaryrefslogtreecommitdiffstats
path: root/toolkit/jetpack/sdk/ui/button/view.js
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-22 00:44:42 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-22 00:44:42 +0300
commit54db9d2005c9e0450c902805c7a94fbda12f46cb (patch)
tree8d3d6f9a3fcddecc5395194ef2d9a0f61e0769b6 /toolkit/jetpack/sdk/ui/button/view.js
parentd0024630326af8a6dbe40f5974d72d0746cf87a1 (diff)
downloadUXP-54db9d2005c9e0450c902805c7a94fbda12f46cb.tar
UXP-54db9d2005c9e0450c902805c7a94fbda12f46cb.tar.gz
UXP-54db9d2005c9e0450c902805c7a94fbda12f46cb.tar.lz
UXP-54db9d2005c9e0450c902805c7a94fbda12f46cb.tar.xz
UXP-54db9d2005c9e0450c902805c7a94fbda12f46cb.zip
[PMkit] Fix the shim for 'sdk/ui/button'
Diffstat (limited to 'toolkit/jetpack/sdk/ui/button/view.js')
-rw-r--r--toolkit/jetpack/sdk/ui/button/view.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/jetpack/sdk/ui/button/view.js b/toolkit/jetpack/sdk/ui/button/view.js
index 552aab2f7..dcc3be59d 100644
--- a/toolkit/jetpack/sdk/ui/button/view.js
+++ b/toolkit/jetpack/sdk/ui/button/view.js
@@ -141,11 +141,11 @@ function create(options) {
CustomizableUI.createWidget({
#endif
id: id,
+ type: 'custom',
#ifdef MC_PALEMOON
onBuild: function(document, _id) {
#else
- type: 'custom',
removable: true,
defaultArea: AREA_NAVBAR,
allowedAreas: [ AREA_PANEL, AREA_NAVBAR ],
@@ -167,9 +167,7 @@ function create(options) {
node.setAttribute('id', this.id);
#endif
node.setAttribute('class', 'toolbarbutton-1 chromeclass-toolbar-additional badged-button');
-#ifndef MC_PALEMOON
node.setAttribute('type', type);
-#endif
node.setAttribute('label', label);
node.setAttribute('tooltiptext', label);
node.setAttribute('image', image);