Fixed new CustomEvent causing build problems

This commit is contained in:
Max Lynch
2013-11-18 21:28:23 -06:00
parent 2549f47af3
commit 94702e9852
3 changed files with 4 additions and 4 deletions

4
dist/js/ionic.js vendored
View File

@ -209,7 +209,8 @@ window.ionic = {
// Trigger a new event
trigger: function(eventType, data) {
var event = new CustomEvent(eventType, { detail: data });
var event = document.createEventObject();
event.detail = data;
// Make sure to trigger the event on the given target, or dispatch it from
// the window if we don't have an event target
@ -1799,7 +1800,6 @@ window.ionic = {
}
})();
// polyfill use to simulate native "tap"
function inputTapPolyfill(ele, e) {
if(ele.type === "radio" || ele.type === "checkbox") {

View File

@ -16,7 +16,8 @@
// Trigger a new event
trigger: function(eventType, data) {
var event = new CustomEvent(eventType, { detail: data });
var event = document.createEventObject();
event.detail = data;
// Make sure to trigger the event on the given target, or dispatch it from
// the window if we don't have an event target

View File

@ -28,7 +28,6 @@
}
})();
// polyfill use to simulate native "tap"
function inputTapPolyfill(ele, e) {
if(ele.type === "radio" || ele.type === "checkbox") {