From 6a26f268658189ff6e80696043b2e16f0ddd1010 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Wed, 28 Jan 2015 13:06:37 +0900 Subject: [PATCH] Bug 1069416 - Part 5: Remove JS_HAS_SYMBOLS from CustomizableUI.jsm. r=Unfocused --- browser/components/customizableui/CustomizableUI.jsm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/browser/components/customizableui/CustomizableUI.jsm b/browser/components/customizableui/CustomizableUI.jsm index 730ea11a3a13..38d4cb568ed9 100644 --- a/browser/components/customizableui/CustomizableUI.jsm +++ b/browser/components/customizableui/CustomizableUI.jsm @@ -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; }