Permalink
Browse files

State events are now emitted from the layer too fixes #87

  • Loading branch information...
koenbok committed Aug 17, 2014
1 parent daa11db commit 689cbb4ee40d4a4c850c3bdc7d854aafc2e61f3a
Showing with 5 additions and 0 deletions.
  1. +5 −0 framer/LayerStates.coffee
@@ -142,3 +142,8 @@ class exports.LayerStates extends BaseClass
last: (animationOptions) ->
# Return to last state
@switch _.last(@_previousStates), animationOptions
emit: (args...) ->
super
# Also emit this to the layer with self as argument
@layer.emit args...

0 comments on commit 689cbb4

Please sign in to comment.