From aea16e7ef4aa2fe11d282a2dabfbf73ade85fe31 Mon Sep 17 00:00:00 2001 From: Paul Adam Davis Date: Sun, 13 Jul 2014 15:00:25 +0100 Subject: [PATCH] Check the end of notification fade-out animation --- ghost/admin/components/gh-notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/admin/components/gh-notification.js b/ghost/admin/components/gh-notification.js index 405d58b234..24d3055e81 100644 --- a/ghost/admin/components/gh-notification.js +++ b/ghost/admin/components/gh-notification.js @@ -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')); + } }); },