Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
State events are now emitted from the layer too fixes #87
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+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...
|