Add isEquals to notifications

This commit is contained in:
Ben Ogle
2014-11-25 12:01:33 -08:00
parent 7094701c66
commit 18f83e90f7

View File

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