Merge pull request #87 from cwohlman/master

Fix for ion-modal spurious blaze errors
This commit is contained in:
Nick Wientge 2015-02-18 13:20:02 -08:00
commit 9ab2fd41e1

View file

@ -33,13 +33,16 @@ IonLoading = {
},
hide: function () {
var $loadingEl = $(this.view.firstNode());
$loadingEl.removeClass('active');
if (this.view) {
var $loadingEl = $(this.view.firstNode());
$loadingEl.removeClass('active');
Meteor.setTimeout(function () {
IonBackdrop.release();
$loadingEl.removeClass('visible');
Blaze.remove(this.view);
}.bind(this), 400);
Meteor.setTimeout(function () {
IonBackdrop.release();
$loadingEl.removeClass('visible');
Blaze.remove(this.view);
this.view = null;
}.bind(this), 400);
}
}
};