|
|
@@ -0,0 +1,14 @@
|
|
|
+(function () { // window.CustomEvent for ie >= 9
|
|
|
+
|
|
|
+ if ( typeof window.CustomEvent === "function" ) return false;
|
|
|
+
|
|
|
+ function CustomEvent ( event, params ) {
|
|
|
+ params = params || { bubbles: false, cancelable: false, detail: null };
|
|
|
+ var evt = document.createEvent( 'CustomEvent' );
|
|
|
+ evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
|
|
|
+ return evt;
|
|
|
+ }
|
|
|
+
|
|
|
+ window.CustomEvent = CustomEvent;
|
|
|
+})();
|
|
|
+
|