fix popover close bug

This commit is contained in:
Gwen 2015-08-06 22:46:59 +02:00
parent e853bfdf20
commit 9a06e10959

View file

@ -121,12 +121,12 @@ IonPopup = {
},
close: function () {
var $backdrop = $(this.view.firstNode());
var $popup = $backdrop.find('.popup-container');
var $popup = this._domrange ? $(this.view.firstNode()).find('.popup-container') : $('.popup-container');
$popup.addClass('popup-hidden').removeClass('active');
setTimeout(function () {
$('body').removeClass('popup-open');
$('.backdrop').remove();
Blaze.remove(this.view);
}.bind(this), 100);
},