mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Add string case to unsubscribeFromActivationEvents()
This commit is contained in:
parent
571c953e51
commit
51cd8cc977
@ -152,6 +152,8 @@ class AtomPackage extends Package
|
||||
unsubscribeFromActivationEvents: ->
|
||||
if _.isArray(@metadata.activationEvents)
|
||||
rootView.off(event, @handleActivationEvent) for event in @metadata.activationEvents
|
||||
else if _.isString(@metadata.activationEvents)
|
||||
rootView.off(@metadata.activationEvents, @handleActivationEvent)
|
||||
else
|
||||
rootView.off(event, selector, @handleActivationEvent) for event, selector of @metadata.activationEvents
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user