0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Check the end of notification fade-out animation

This commit is contained in:
Paul Adam Davis 2014-07-13 15:00:25 +01:00
parent 6186ecb590
commit b08a4b1fe5

View file

@ -31,7 +31,9 @@ var NotificationComponent = Ember.Component.extend({
self.$().on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (event) {
/* jshint unused: false */
self.notifications.removeObject(self.get('message'));
if (event.originalEvent.animationName === 'fade-out') {
self.notifications.removeObject(self.get('message'));
}
});
},