aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/app/assets/javascripts/utils/event.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/app/assets/javascripts/utils/event.coffee')
-rw-r--r--actionview/app/assets/javascripts/utils/event.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/app/assets/javascripts/utils/event.coffee b/actionview/app/assets/javascripts/utils/event.coffee
index d25fe8e546..8d3ff007ea 100644
--- a/actionview/app/assets/javascripts/utils/event.coffee
+++ b/actionview/app/assets/javascripts/utils/event.coffee
@@ -6,7 +6,7 @@
# https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill
CustomEvent = window.CustomEvent
-if typeof CustomEvent is 'function'
+if typeof CustomEvent isnt 'function'
CustomEvent = (event, params) ->
evt = document.createEvent('CustomEvent')
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail)