From b08a4b1fe56352ad9dc30ef1a8dbc1498db46261 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 --- core/client/components/gh-notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/client/components/gh-notification.js b/core/client/components/gh-notification.js index 405d58b234..24d3055e81 100644 --- a/core/client/components/gh-notification.js +++ b/core/client/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')); + } }); },