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

What is Framer? Join the Community
Return to index
John Marstall
Posted Jun 10 - Read on Facebook

Setting variables in a module: Here's a simple project example that doesn't work as I'd expect. AFAICT, the console should print "external value" but it prints "internal value only". Any tips?

1 Comments

John Marstall

Following up.. it seems the way to do this is to include the internal module variable in the constructor (using options.myVar or @options.myVar). However, it must be set *in the intialization.* This is done by indenting and declaring the value immediately under the line which instantiates (creates) the module class in app.coffee.

http://pastebin.com/Z48gNCpY

Read the entire post on Facebook