mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
return CustomEvent in polyfill if it doesn't exist
This commit is contained in:
@@ -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;
|
||||
})();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user