/*! * https://github.com/krambuhl/custom-event-polyfill * @license The MIT License (MIT) Copyright (c) 2014 Evan Krambuhl * see https://github.com/krambuhl/custom-event-polyfill/blob/master/LICENSE */ (function(){try{new e("test")}catch(t){var e=function(t,e){var n;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e}})();