Rework expiring messages management

// FREEBIE
This commit is contained in:
lilia 2017-02-21 15:32:40 -08:00
parent 08e8c00329
commit e4b9c51f88
6 changed files with 66 additions and 21 deletions

View file

@ -144,6 +144,9 @@
this.remove();
}
}.bind(this));
// Failsafe: if in the background, animation events don't fire
setTimeout(this.remove.bind(this), 1000);
},
onDestroy: function() {
if (this.$el.hasClass('expired')) {