-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6986 in SW/shopware from sw-22531/5.5/fix-emotion…
…-loading-ie to 5.5 * commit 'baee34113d2e84012d6946ec8e214538738ba69a': SW-22531 - Fix emotion loading on IE 11
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
themes/Frontend/Responsive/frontend/_public/src/js/jquery.symbol-polyfill.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// https://github.com/stephband/jquery.event.move/issues/41#issuecomment-288851979 | ||
|
||
if (!window.Symbol) { | ||
(function(window) { | ||
var defineProperty = Object.defineProperty; | ||
var prefix = '__symbol-' + Math.ceil(Math.random() * 1000000000) + '-'; | ||
var id = 0; | ||
|
||
function Symbol(description) { | ||
if (!(this instanceof Symbol)) { return new Symbol(description); } | ||
var symbol = prefix + id++; | ||
this._symbol = symbol; | ||
} | ||
|
||
defineProperty(Symbol.prototype, 'toString', { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: function toString() { | ||
return this._symbol; | ||
} | ||
}); | ||
|
||
window.Symbol = Symbol; | ||
}(this)); | ||
} |