Skip to content

Commit 09fb784

Browse files
committed
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
2 parents 0b880ca + baee341 commit 09fb784

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

themes/Frontend/Responsive/Theme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class Theme extends \Shopware\Components\Theme
7979
// Third party plugins / libraries
8080
'src/js/vendors/modernizr/modernizr.custom.35977.js',
8181
'vendors/js/jquery/jquery.min.js',
82+
'src/js/jquery.symbol-polyfill.js',
8283
'vendors/js/picturefill/picturefill.min.js',
8384
'vendors/js/jquery.transit/jquery.transit.js',
8485
'vendors/js/jquery.event.move/jquery.event.move.js',
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// https://github.com/stephband/jquery.event.move/issues/41#issuecomment-288851979
2+
3+
if (!window.Symbol) {
4+
(function(window) {
5+
var defineProperty = Object.defineProperty;
6+
var prefix = '__symbol-' + Math.ceil(Math.random() * 1000000000) + '-';
7+
var id = 0;
8+
9+
function Symbol(description) {
10+
if (!(this instanceof Symbol)) { return new Symbol(description); }
11+
var symbol = prefix + id++;
12+
this._symbol = symbol;
13+
}
14+
15+
defineProperty(Symbol.prototype, 'toString', {
16+
enumerable: false,
17+
configurable: false,
18+
writable: false,
19+
value: function toString() {
20+
return this._symbol;
21+
}
22+
});
23+
24+
window.Symbol = Symbol;
25+
}(this));
26+
}

0 commit comments

Comments
 (0)