Explain dismiss when called programmatically

This commit is contained in:
Ross Allen
2015-07-13 14:36:08 -07:00
parent 580201568f
commit 16d98c534c

View File

@@ -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