File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,18 @@ if ( !Object.keys ) {
1717 }
1818}
1919
20- PointerEventsPolyfill = {
21- external : {
22- contains : $ . contains ,
23- addEvent : function ( target , eventName ) {
24- $ ( target ) . on ( eventName , this . boundHandler ) ;
25- } ,
26- removeEvent : function ( target , eventName ) {
27- $ ( target ) . off ( eventName , this . boundHandler ) ;
28- } ,
29- dispatchEvent : function ( event ) {
30- var target = this . getTarget ( event ) ;
31- $ ( target ) . trigger ( event ) ;
32- }
20+ window . PointerEventsPolyfill = window . PointerEventsPolyfill || { } ;
21+ window . PointerEventsPolyfill . external = {
22+ contains : $ . contains ,
23+ addEvent : function ( target , eventName ) {
24+ $ ( target ) . on ( eventName , this . boundHandler ) ;
25+ } ,
26+ removeEvent : function ( target , eventName ) {
27+ $ ( target ) . off ( eventName , this . boundHandler ) ;
28+ } ,
29+ dispatchEvent : function ( event ) {
30+ var target = this . getTarget ( event ) ;
31+ $ ( target ) . trigger ( event ) ;
3332 }
3433} ;
3534
You can’t perform that action at this time.
0 commit comments