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

custom_event.js.es6 « extensions « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: abedae4c1c7a669fad71f73180153be3f09dcde8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* global CustomEvent */
/* eslint-disable no-global-assign */

// Custom event support for IE
CustomEvent = function CustomEvent(event, parameters) {
  const params = parameters || { bubbles: false, cancelable: false, detail: undefined };
  const evt = document.createEvent('CustomEvent');
  evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
  return evt;
};

CustomEvent.prototype = window.Event.prototype;