Source: polyfills/CustomEvent.js

  1. /**
  2. * {@link https://github.com/webcomponents/webcomponentsjs/commit/8d6a38aa6e3d03ff54a41db9e9725401bbc1446c Strange commit, checks CustomEvent only in IE}
  3. * @constructor CustomEvent
  4. * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
  5. */
  6. import context from '../context';
  7. import CustomEventCommon from './CustomEventCommon';
  8. if (typeof context.CustomEvent !== 'function') {
  9. context.CustomEvent = CustomEventCommon;
  10. }