From e52c1fe65c0c600272f6b8fb80aed22c60e63d08 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 17 Jan 2018 14:27:26 +0100 Subject: [PATCH] remove Symbol polyfill --- www/common/boot2.js | 8 -------- www/common/sframe-boot2.js | 8 -------- 2 files changed, 16 deletions(-) diff --git a/www/common/boot2.js b/www/common/boot2.js index 6d81e249c..11dfa1649 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -26,14 +26,6 @@ define([ Number.MAX_SAFE_INTEGER = 9007199254740991; } - if (typeof(window.Symbol) !== 'function') { - var idCounter = 0; - var Symbol = window.Symbol = function Symbol(key) { - return '__' + key + '_' + Math.floor(Math.random() * 1e9) + '_' + (++idCounter) + '__'; - }; - Symbol.iterator = Symbol('Symbol.iterator'); - } - var failStore = function () { console.error(new Error('wut')); require(['jquery'], function ($) { diff --git a/www/common/sframe-boot2.js b/www/common/sframe-boot2.js index 697f22a91..fe614ba33 100644 --- a/www/common/sframe-boot2.js +++ b/www/common/sframe-boot2.js @@ -18,14 +18,6 @@ define([ Number.MAX_SAFE_INTEGER = 9007199254740991; } - if (typeof(window.Symbol) !== 'function') { - var idCounter = 0; - var Symbol = window.Symbol = function Symbol(key) { - return '__' + key + '_' + Math.floor(Math.random() * 1e9) + '_' + (++idCounter) + '__'; - }; - Symbol.iterator = Symbol('Symbol.iterator'); - } - var mkFakeStore = function () { var fakeStorage = { getItem: function (k) { return fakeStorage[k]; },