mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-06-30 06:12:08 -06:00
bug fix
This commit is contained in:
parent
fd2cebb699
commit
12fce09295
2 changed files with 7 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ IonLoading = {
|
|||
customTemplate: null,
|
||||
backdrop: false
|
||||
}, userOptions);
|
||||
|
||||
|
||||
if (options.backdrop) {
|
||||
IonBackdrop.retain();
|
||||
$('.backdrop').addClass('backdrop-loading');
|
||||
|
|
@ -42,7 +42,10 @@ IonLoading = {
|
|||
$loadingEl.removeClass('visible');
|
||||
Blaze.remove(this.view);
|
||||
this.view = null;
|
||||
}.bind(this), 400);
|
||||
}.bind(this), 0);
|
||||
}
|
||||
Meteor.setTimeout(function() {
|
||||
$('.loading-container').remove();
|
||||
}, 0)
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,12 +20,12 @@ Template.ionSlideBox.rendered = function () {
|
|||
return '<span class="slider-pager-page icon ion-record"></span>';
|
||||
}
|
||||
});
|
||||
|
||||
this.$('.ion-slide-box').on('afterChange', function (event, slick, currentSlide) {
|
||||
$(this).trigger({type: 'onSlideChanged', index: currentSlide});
|
||||
});
|
||||
};
|
||||
|
||||
Template.ionSlideBox.destroyed = function () {
|
||||
this.$('.ion-slide-box').slick('unslick');
|
||||
var $slideBox = this.$('.ion-slide-box');
|
||||
if ($slideBox.hasClass('slick-initialized')) $slideBox.slick('unslick');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue