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

What is Framer? Join the Community
Return to index
Rohan K
Posted Aug 19 - Read on Facebook

can we use .emit to bind custom events to a class (class extends Layer if that helps)? I don't get an error when I try to emit, but I get an error when I try to use classObject.on "customEvent", ->

1 Comments

Derek Nguyen

sounds weird, usually even if i didn't emit anything, I can still set up a `classObject.on 'event', ->` without any error. Maybe the error is somewhere else in the code?

Read the entire post on Facebook