UNPKG

@atlassian/aui

Version:

Atlassian User Interface Framework

14 lines 1.4 kB
/*!! * @atlassian/aui - Atlassian User Interface Framework * @version v8.0.0-alpha.1 * @link https://aui.atlassian.com * @license SEE LICENSE IN LICENSE.md * @author Atlassian Pty Ltd. */ exports.ids=[14],exports.modules={19: /*!***********************************************!*\ !*** ../src/js/aui/polyfills/custom-event.js ***! \***********************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=void 0;!function(){if(window.CustomEvent)try{var e=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default");if("name"!==e.type)throw new Error("Could not set custom name");if("y"!==e.detail.x)throw new Error("Could not set detail");return void(o=window.CustomEvent)}catch(e){}(o=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail);var o=n.preventDefault;return n.preventDefault=function(){o.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n}).prototype=window.Event.prototype}(),t.default=o,e.exports=t.default}};