From 21ff75479f2dbc6cc4824732d7edc79e1d138491 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Thu, 3 Apr 2014 11:55:12 -0600 Subject: [PATCH] fix($ionicPopup): make it work if jquery is included Closes #1027 --- js/ext/angular/src/directive/ionicPopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ext/angular/src/directive/ionicPopup.js b/js/ext/angular/src/directive/ionicPopup.js index f841a4553b4..0d814c7d98f 100644 --- a/js/ext/angular/src/directive/ionicPopup.js +++ b/js/ext/angular/src/directive/ionicPopup.js @@ -47,7 +47,7 @@ angular.module('ionic.ui.popup', []) var result = button.onTap && button.onTap(event); // A way to return false - if(event.defaultPrevented) { + if((event.originalEvent || event).defaultPrevented) { return $scope.$onClose({button: button, result: false, event: event }); }