Skip to content

Commit

Permalink
fix($ionicPopup): make it work if jquery is included
Browse files Browse the repository at this point in the history
Closes #1027
  • Loading branch information
ajoslin committed Apr 3, 2014
1 parent 6b5083b commit 21ff754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ext/angular/src/directive/ionicPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down

0 comments on commit 21ff754

Please sign in to comment.