mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-04 21:28:48 +03:00
Don’t assume presence of unsubscribe method in SpacePen callRemoveHooks
This commit is contained in:
parent
1c16738969
commit
a7c3c15885
@ -12,7 +12,7 @@ jQuery.cleanData = (elements) ->
|
||||
|
||||
SpacePenCallRemoveHooks = SpacePen.callRemoveHooks
|
||||
SpacePen.callRemoveHooks = (element) ->
|
||||
view.unsubscribe() for view in SpacePen.viewsForElement(element)
|
||||
view.unsubscribe?() for view in SpacePen.viewsForElement(element)
|
||||
SpacePenCallRemoveHooks(element)
|
||||
|
||||
NativeEventNames = new Set
|
||||
|
Loading…
Reference in New Issue
Block a user