diff --git a/js/utils/events.js b/js/utils/events.js index d99f1b5b2a..dd2229173f 100644 --- a/js/utils/events.js +++ b/js/utils/events.js @@ -14,7 +14,8 @@ // Custom event polyfill ionic.CustomEvent = window.CustomEvent || (function() { - function CustomEvent(event, params) { + var CustomEvent; + CustomEvent = function(event, params) { var evt; params = params || { bubbles: false, @@ -35,6 +36,7 @@ return evt; } CustomEvent.prototype = window.Event.prototype; + return CustomEvent; })();