From 48de6e9bdad29ae4488679c646b72a697907fe7a Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Mon, 1 Jan 2018 13:24:51 -0500 Subject: Revert unintentional change in 41e3bbd --- actionview/app/assets/javascripts/rails-ujs/utils/event.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview') diff --git a/actionview/app/assets/javascripts/rails-ujs/utils/event.coffee b/actionview/app/assets/javascripts/rails-ujs/utils/event.coffee index 0cb8ce6ba4..a7eee52060 100644 --- a/actionview/app/assets/javascripts/rails-ujs/utils/event.coffee +++ b/actionview/app/assets/javascripts/rails-ujs/utils/event.coffee @@ -7,7 +7,7 @@ CustomEvent = window.CustomEvent if typeof CustomEvent isnt 'function' - window.CustomEvent = (event, params) -> + CustomEvent = (event, params) -> evt = document.createEvent('CustomEvent') evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail) evt -- cgit v1.2.3