From e4cc22b41d8caf94fef9f6dfe2c6d474e2645111 Mon Sep 17 00:00:00 2001 From: Daniil Polovinkin Date: Tue, 29 Sep 2015 17:06:03 +0300 Subject: [PATCH] Using `apply()` with the popup object as `this` in `onTap()` --- js/angular/service/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/service/popup.js b/js/angular/service/popup.js index 4e708197898..90f1fa07905 100644 --- a/js/angular/service/popup.js +++ b/js/angular/service/popup.js @@ -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) {