intercellular / cell

A self-driving web app framework
https://www.celljs.org
MIT License
1.5k stars 94 forks source link

Question about instantiation #119

Closed piranna closed 7 years ago

piranna commented 7 years ago

On all the examples I've found so far, a JSON-like object is assigned to a variable at the global context, being only identified by having a $cell: true attribute. Does it get "automagically" fetch and used? How? Shouldn't it be better to be set explicitly passing it as a parameter to a function call? Why was it done this way?

devsnek commented 7 years ago

it iterates through Object.keys on the root (usually window)

for more info on why this was the chosen behavior check out #111

gliechtenstein commented 7 years ago

check out my new post on this https://github.com/intercellular/cell/issues/125

gliechtenstein commented 7 years ago

Closing this, let's continue the discussion at #125