mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-28 06:12:23 -06:00
Merge pull request #87 from cwohlman/master
Fix for ion-modal spurious blaze errors
This commit is contained in:
commit
9ab2fd41e1
1 changed files with 10 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue