Browse Source

Merge pull request #748 from tinymins/master

Fix the `CustomEvent` compatibility problem
pull/610/merge
XhmikosR 10 years ago
parent
commit
12b869e68e
  1. 9
      js/common.js

9
js/common.js

@ -9,6 +9,15 @@
!(function () { !(function () {
'use strict'; '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 // Create Ratchet namespace
if (typeof window.RATCHET === 'undefined') { if (typeof window.RATCHET === 'undefined') {
window.RATCHET = {}; window.RATCHET = {};

Loading…
Cancel
Save