mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add getNotifications()
This commit is contained in:
@@ -42,3 +42,9 @@ class NotificationManager
|
||||
@notifications.push(notification)
|
||||
@emitter.emit('did-add-notification', notification)
|
||||
notification
|
||||
|
||||
###
|
||||
Section: Getting Notifications
|
||||
###
|
||||
|
||||
getNotifications: -> @notifications
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user