This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ivor van Rensburg
Posted Mar 10 - Read on Facebook

Could someone explain why off() isn't working below please? I'm trying to understand how it works from the documentation and when I copy the below code nothing happens

layerA = new Layer = "layerA"

clickHandler = (event, layer) ->
print "This layer was clicked",

layerA.on(Events.Click, clickHandler), clickHandler)


Jonas Treub

With off you are removing the handler, delete the last line and you should get some feedback

Read the entire post on Facebook