mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add isEquals to notifications
This commit is contained in:
@@ -15,6 +15,11 @@ class Notification
|
||||
|
||||
getDetail: -> @options.detail
|
||||
|
||||
isEqual: (other) ->
|
||||
@getMessage() == other.getMessage() \
|
||||
and @getType() == other.getType() \
|
||||
and @getDetail() == other.getDetail()
|
||||
|
||||
isClosable: ->
|
||||
!!@options.closable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user