From afb857d1e72d31b9e93cb7b2443fcf40851f85e0 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Mon, 2 Jan 2017 15:53:24 +0000 Subject: Removes CustomEvent polyfill and tests --- .../javascripts/lib/utils/custom_event_polyfill.js.es6 | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 app/assets/javascripts/lib/utils/custom_event_polyfill.js.es6 (limited to 'app') diff --git a/app/assets/javascripts/lib/utils/custom_event_polyfill.js.es6 b/app/assets/javascripts/lib/utils/custom_event_polyfill.js.es6 deleted file mode 100644 index 5ae978010c9..00000000000 --- a/app/assets/javascripts/lib/utils/custom_event_polyfill.js.es6 +++ /dev/null @@ -1,12 +0,0 @@ -/** - * CustomEvent support for IE - */ -if (typeof window.CustomEvent !== 'function') { - window.CustomEvent = function CustomEvent(e, params) { - const options = params || { bubbles: false, cancelable: false, detail: undefined }; - const evt = document.createEvent('CustomEvent'); - evt.initCustomEvent(e, options.bubbles, options.cancelable, options.detail); - return evt; - }; - window.CustomEvent.prototype = window.Event.prototype; -} -- cgit v1.2.1