mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
4
js/angular/service/popover.js
vendored
4
js/angular/service/popover.js
vendored
@@ -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 || {}));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user