Skip to content

Commit

Permalink
Using apply() with the popup object as this in onTap()
Browse files Browse the repository at this point in the history
  • Loading branch information
xxdondi committed Sep 29, 2015
1 parent af1bfef commit e4cc22b
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 @@ -296,7 +296,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 e4cc22b

Please sign in to comment.