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

What is Framer? Join the Community
Return to index
Jack Barnes
Posted Mar 11 - Read on Facebook

I am trying to learn how to extend the Layer class , I feel it has a lot of potential for more complex prototypes once you master it , what's wrong in my example?
it's throwing an error:
"TypeError: undefined is not an object (evaluating 'name')"


Jonas Treub

The @color property only exists after initialisation. You could do the following:

Jack Barnes

what is the super keyword for? is options the arguments passed to the super layer constructor? I am reading the source code of the file

Jonas Treub

Yes. You are right. You can also add custom properties like this:

Jack Barnes

Thanks , I was looking for a well explained article or post where you can learn the basics and start from there

Jonas Treub

I am planning on doing a writeup soon.

Jack Barnes

great, one of the difficulties I've found is learning first the keywords and syntax in coffeescript

Veronica Jimenez-Miller

Hey Red Fox, I also been finding the sintax hard to learn. I found this book and has been a great help Cheers!

German Bauer

Yep great concise book!

Read the entire post on Facebook