Skip to content

Commit

Permalink
Merge pull request #4446 from Niades/popups-scope
Browse files Browse the repository at this point in the history
Access popup scope in the tap event handlers
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 11946ef + e4cc22b commit f7eca57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/service/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB
subTitle: options.subTitle,
cssClass: options.cssClass,
$buttonTapped: function(button, event) {
var result = (button.onTap || noop)(event);
var result = (button.onTap || noop).apply(self, [event]);
event = event.originalEvent || event; //jquery events

if (!event.defaultPrevented) {
Expand Down

0 comments on commit f7eca57

Please sign in to comment.