remove Symbol polyfill

pull/1/head
ansuz 2018-01-17 14:27:26 +01:00
parent a91a047d73
commit e52c1fe65c
2 changed files with 0 additions and 16 deletions

View File

@ -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 ($) {

View File

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