mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Explain dismiss when called programmatically
This commit is contained in:
@@ -64,8 +64,8 @@ class Notification
|
||||
and @getType() is other.getType() \
|
||||
and @getDetail() is other.getDetail()
|
||||
|
||||
# Extended: Dismisses the notification, removing it from the UI. This will call all callbacks
|
||||
# added via `onDidDismiss`.
|
||||
# Extended: Dismisses the notification, removing it from the UI. Calling this programmatically
|
||||
# will call all callbacks added via `onDidDismiss`.
|
||||
dismiss: ->
|
||||
return unless @isDismissable() and not @isDismissed()
|
||||
@dismissed = true
|
||||
|
||||
Reference in New Issue
Block a user