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

What is Framer? Join the Community
Return to index
David Phillips
Posted Jul 15 - Read on Facebook

What's the proper way to write a constructor when extending a Framer class such as Layer, where you also need to pass in additional parameters when instantiating?

e.g.
Foo extends Layer
constructor: (??????)

a = new Foo ({width:100, height:100}, otherParameter, yetAnotherParameter)

Possible?

2 Comments

Seoh Char

David Phillips

Thanks!

Read the entire post on Facebook