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

What is Framer? Join the Community
Return to index
Brian Byle
Posted Aug 02 - Read on Facebook

Stumbled across this today:

class List extends ScrollComponent
constructor: ->
@tasks= []

@iconCheck = iconCheck = new Layer
width: ...

My question is the line :
"iconCheck = iconCheck = new Layer"

Is that shorthand for something or literally just assigning "iconCheck = new Layer" value to the variable iconCheck?

Thx in advance


Brian Williams

its assigning two variables with the same value ... I am assuming a instance property and an locally scoped one ... god knows why though

Brian Williams

Brian Byle

Thx. Yeah this was an "advanced tutorial" according to the author 😬

Read the entire post on Facebook