diff --git a/js/angular/service/popover.js b/js/angular/service/popover.js index c174a53494..3bfa6ebf09 100644 --- a/js/angular/service/popover.js +++ b/js/angular/service/popover.js @@ -212,8 +212,8 @@ function($ionicModal, $ionicPosition, $document, $window) { * @returns {promise} A promise that will be resolved with an instance of * an {@link ionic.controller:ionicPopover} controller (ionicPopover is built on top of $ionicPopover). */ - fromTemplateUrl: function(url, options, _) { - return $ionicModal.fromTemplateUrl(url, options, ionic.Utils.extend(POPOVER_OPTIONS, options || {})); + fromTemplateUrl: function(url, options) { + return $ionicModal.fromTemplateUrl(url, ionic.Utils.extend(POPOVER_OPTIONS, options || {})); } }; diff --git a/test/unit/angular/service/popover.unit.js b/test/unit/angular/service/popover.unit.js index 8fb17a050c..cfbaa33f2d 100644 --- a/test/unit/angular/service/popover.unit.js +++ b/test/unit/angular/service/popover.unit.js @@ -36,7 +36,7 @@ describe('Ionic Popover', function() { var done = false; - var instance = popover.fromTemplateUrl('popover.html', function(instance) { + popover.fromTemplateUrl('popover.html').then(function(instance) { done = true; instance.show(); expect(instance.el.classList.contains('popover-backdrop')).toBe(true);