Skip to content
Permalink
Browse files

Resetting frozen events upon resetting the context

  • Loading branch information
nvh committed Oct 11, 2016
1 parent 8753f2a commit 13eae191cd5814cad0a668f6aaf4b431a42c30c7
Showing with 4 additions and 1 deletion.
  1. +4 −1 framer/Context.coffee
@@ -73,6 +73,7 @@ class exports.Context extends BaseClass
@_createDOMEventManager()
@_createRootElement()

@resetFrozenEvents()
@resetLayers()
@resetAnimations()
@resetTimers()
@@ -148,6 +149,8 @@ class exports.Context extends BaseClass
return unless @_animations
@_animations.map (animation) -> animation.stop(true)

resetFrozenEvents: ->
delete @_frozenEvents

# Timers
@define "timers", get: -> _.clone(@_timers)
@@ -237,7 +240,7 @@ class exports.Context extends BaseClass
for listener in listeners
layer.on(eventName, listener)

delete @_frozenEvents
@resetFrozenEvents()


##############################################################

0 comments on commit 13eae19

Please sign in to comment.
You can’t perform that action at this time.