Permalink
Browse files

Cleanup

  • Loading branch information...
koenbok committed Oct 5, 2014
1 parent a04b76d commit 63841e7fa80bcf43f9f8ff917760ee03b89091af
Showing with 5 additions and 14 deletions.
  1. +5 −14 framer/Layer.coffee
View
@@ -405,19 +405,6 @@ class exports.Layer extends BaseClass
copySingle: -> new Layer @properties
##############################################################
## ANIMATION
animate: (options) ->
options.layer = @
options.curveOptions = options
animation = new Animation options
animation.start()
animation
##############################################################
## IMAGE
@@ -660,10 +647,14 @@ class exports.Layer extends BaseClass
addListener: (eventName, originalListener) =>
# To avoid an error in Framer Studio we return if no originalListener was given
if not originalListener
return
# # Modify the scope to be the calling object, just like jquery
# # also add the object as the last argument
listener = (args...) =>
originalListener.call @, args..., @
originalListener.call(@, args..., @)
# Because we modify the listener we need to keep track of it
# so we can find it back when we want to unlisten again

0 comments on commit 63841e7

Please sign in to comment.