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

What is Framer? Join the Community
Return to index
Alvaro Lourenço
Posted Jan 04 - Read on Facebook

Hey y'all.

I got really puzzled today trying to realize why this piece of code can't work inside Framer Studio. Look:

Object::test = (props...) -> v.constructor for p, v of @
print { a: 1, b: 2, c: [1,2], d:{pt:true, pf:false}, e:'test', f:false }.test()

This trows the following "TypeError: undefined is not a object (evaluating 'v.constructor')"

In any other coffeescript environment it should work perfectly - swapping 'print' for the 'alert' method.

- Is this really an issue with the 'print' method or something other I missed?