Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
koenbok committed Oct 5, 2014
1 parent a04b76d commit 63841e7
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions framer/Layer.coffee
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 63841e7

Please sign in to comment.