diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-04-22 00:44:42 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-04-22 00:44:42 +0300 |
commit | 54db9d2005c9e0450c902805c7a94fbda12f46cb (patch) | |
tree | 8d3d6f9a3fcddecc5395194ef2d9a0f61e0769b6 | |
parent | d0024630326af8a6dbe40f5974d72d0746cf87a1 (diff) | |
download | UXP-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'
-rw-r--r-- | toolkit/jetpack/sdk/ui/button/view.js | 4 |
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); |