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:
Tooru Fujisawa 2015-09-23 18:36:20 +09:00
Родитель ef4976c92f
Коммит 21d80b2498
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

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