mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +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
|
SpacePenCallRemoveHooks = SpacePen.callRemoveHooks
|
||||||
SpacePen.callRemoveHooks = (element) ->
|
SpacePen.callRemoveHooks = (element) ->
|
||||||
view.unsubscribe() for view in SpacePen.viewsForElement(element)
|
view.unsubscribe?() for view in SpacePen.viewsForElement(element)
|
||||||
SpacePenCallRemoveHooks(element)
|
SpacePenCallRemoveHooks(element)
|
||||||
|
|
||||||
NativeEventNames = new Set
|
NativeEventNames = new Set
|
||||||
|
Loading…
Reference in New Issue
Block a user