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')"
The @color property only exists after initialisation. You could do the following: http://share.framerjs.com/rm4t5yx65n4s/
what is the super keyword for? is options the arguments passed to the super layer constructor? I am reading the source code of the layer.coffee file
Yes. You are right. You can also add custom properties like this: https://github.com/jonastreub/VRComponent/blob/master/VRComponent.coffee#L134
Thanks , I was looking for a well explained article or post where you can learn the basics and start from there
I am planning on doing a writeup soon.
great, one of the difficulties I've found is learning first the keywords and syntax in coffeescript
Hey Red Fox, I also been finding the sintax hard to learn. I found this book and has been a great help https://coffeescript-for-framerjs.com/ Cheers!
Yep great concise book!