Add getNotifications()

This commit is contained in:
Ben Ogle
2014-12-05 13:42:55 -08:00
parent f095d38978
commit 5cf97db07c
2 changed files with 7 additions and 1 deletions

View File

@@ -42,3 +42,9 @@ class NotificationManager
@notifications.push(notification)
@emitter.emit('did-add-notification', notification)
notification
###
Section: Getting Notifications
###
getNotifications: -> @notifications

View File

@@ -28,7 +28,7 @@ class Notification
and @getDetail() == other.getDetail()
dismiss: ->
return unless @isDismissable()
return unless @isDismissable() and not @isDismissed()
@dismissed = true
@emitter.emit 'did-dismiss'