mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
Bug 1069416 - Part 5: Remove JS_HAS_SYMBOLS from CustomizableUI.jsm. r=Unfocused
This commit is contained in:
parent
dbb48a7402
commit
6a26f26865
@ -50,13 +50,6 @@ const kSubviewEvents = [
|
||||
"ViewHiding"
|
||||
];
|
||||
|
||||
/**
|
||||
* The method name to use for ES6 iteration. If Symbols are enabled in
|
||||
* this build, use Symbol.iterator; otherwise "@@iterator".
|
||||
*/
|
||||
const JS_HAS_SYMBOLS = typeof Symbol === "function";
|
||||
const kIteratorSymbol = JS_HAS_SYMBOLS ? Symbol.iterator : "@@iterator";
|
||||
|
||||
/**
|
||||
* The current version. We can use this to auto-add new default widgets as necessary.
|
||||
* (would be const but isn't because of testing purposes)
|
||||
@ -2710,7 +2703,7 @@ this.CustomizableUI = {
|
||||
* for (let window of CustomizableUI.windows) { ... }
|
||||
*/
|
||||
windows: {
|
||||
*[kIteratorSymbol]() {
|
||||
*[Symbol.iterator]() {
|
||||
for (let [window,] of gBuildWindows)
|
||||
yield window;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user