From 50e3e3ce919a3f38aa273ef8f2c5df2666fe93ac Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 16 Jan 2018 18:12:33 +0100 Subject: [PATCH] polyfill Symbol for IE --- www/common/boot2.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/common/boot2.js b/www/common/boot2.js index 11dfa1649..6d81e249c 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -26,6 +26,14 @@ 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 ($) {