2014-03-22 07:08:15 -05:00
|
|
|
var NotificationComponent = Ember.Component.extend({
|
|
|
|
classNames: ['js-bb-notification'],
|
|
|
|
|
|
|
|
didInsertElement: function () {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
self.$().on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (event) {
|
|
|
|
/* jshint unused: false */
|
|
|
|
self.notifications.removeObject(self.get('message'));
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
closeNotification: function () {
|
|
|
|
var self = this;
|
2014-06-29 16:45:03 -05:00
|
|
|
self.notifications.closeNotification(self.get('message'));
|
2014-03-22 07:08:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-06-29 16:45:03 -05:00
|
|
|
export default NotificationComponent;
|