Bug 1069416 - Part 5: Remove JS_HAS_SYMBOLS from CustomizableUI.jsm. r=Unfocused

This commit is contained in:
Tooru Fujisawa 2015-01-28 13:06:37 +09:00
parent dbb48a7402
commit 6a26f26865

View File

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