Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/common.js')
-rwxr-xr-xjs/common.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/common.js b/js/common.js
index 4cad187..eb462d5 100755
--- a/js/common.js
+++ b/js/common.js
@@ -9,6 +9,15 @@
!(function () {
'use strict';
+ // Compatible With CustomEvent
+ if (!window.CustomEvent) {
+ window.CustomEvent = function (type, config) {
+ var e = document.createEvent('CustomEvent');
+ e.initCustomEvent(type, config.bubbles, config.cancelable, config.detail);
+ return e;
+ };
+ }
+
// Create Ratchet namespace
if (typeof window.RATCHET === 'undefined') {
window.RATCHET = {};