Skip to content

Commit

Permalink
Merge pull request #6986 in SW/shopware from sw-22531/5.5/fix-emotion…
Browse files Browse the repository at this point in the history
…-loading-ie to 5.5

* commit 'baee34113d2e84012d6946ec8e214538738ba69a':
  SW-22531 - Fix emotion loading on IE 11
  • Loading branch information
soebbing committed Sep 17, 2018
2 parents 0b880ca + baee341 commit 09fb784
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions themes/Frontend/Responsive/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Theme extends \Shopware\Components\Theme
// Third party plugins / libraries
'src/js/vendors/modernizr/modernizr.custom.35977.js',
'vendors/js/jquery/jquery.min.js',
'src/js/jquery.symbol-polyfill.js',
'vendors/js/picturefill/picturefill.min.js',
'vendors/js/jquery.transit/jquery.transit.js',
'vendors/js/jquery.event.move/jquery.event.move.js',
Expand Down
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));
}

0 comments on commit 09fb784

Please sign in to comment.