зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207491 - Part 3: Remove use of expression closure from browser/components/customizableui/content/. r=Gijs
--HG-- extra : commitid : CCFhLhA8g2S extra : rebase_source : e1d244cf6f11c58cc13fedd971c9292bde7b7024
This commit is contained in:
Родитель
ef4976c92f
Коммит
21d80b2498
|
@ -17,7 +17,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "ShortcutUtils",
|
|||
|
||||
const PanelUI = {
|
||||
/** Panel events that we listen for. **/
|
||||
get kEvents() ["popupshowing", "popupshown", "popuphiding", "popuphidden"],
|
||||
get kEvents() {
|
||||
return ["popupshowing", "popupshown", "popuphiding", "popuphidden"];
|
||||
},
|
||||
/**
|
||||
* Used for lazily getting and memoizing elements from the document. Lazy
|
||||
* getters are set in init, and memoizing happens after the first retrieval.
|
||||
|
|
|
@ -288,7 +288,9 @@
|
|||
toolbar: this,
|
||||
contextMenu: null,
|
||||
|
||||
get active () !!this.contextMenu,
|
||||
get active () {
|
||||
return !!this.contextMenu;
|
||||
},
|
||||
|
||||
init: function (event) {
|
||||
let node = event.target;
|
||||
|
|
Загрузка…
Ссылка в новой задаче