File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
themes/Frontend/Responsive Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class Theme extends \Shopware\Components\Theme
79
79
// Third party plugins / libraries
80
80
'src/js/vendors/modernizr/modernizr.custom.35977.js ' ,
81
81
'vendors/js/jquery/jquery.min.js ' ,
82
+ 'src/js/jquery.symbol-polyfill.js ' ,
82
83
'vendors/js/picturefill/picturefill.min.js ' ,
83
84
'vendors/js/jquery.transit/jquery.transit.js ' ,
84
85
'vendors/js/jquery.event.move/jquery.event.move.js ' ,
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments