alist / domoapis

0 stars 0 forks source link

Shirish's Fix for "Stuck" ARIds #4

Closed alist closed 10 years ago

shirish87 commented 10 years ago

@alist, everything would've worked just fine, even with the global variable, had it not been for this nasty bug in Jade. This explains the "caching" behaviour you caught earlier. :)

alist commented 10 years ago

GROSS! Would their calling "var varname" for each local variable in render end up scoping correctly? Their solution seems a bit odd.

Also is the workaround critical as long as we scope properly by calling var?

shirish87 commented 10 years ago

Not exactly. Once the variable is global, its pretty much going to remain global until app restart. They're planning to no longer read the actual global object. I think they'll instead allow their own internal options.global passed as options, so you can save stuff like App Name or Title.

The workaround is not required. I was super curious about Jade's behaviour so was trying stuff out on that branch.