You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Outside of the loop, "this" is {{this}}</p>
{{#eachthisas |fooController|}}
<p>Inside of the loop, "this" is still {{this}}</p>
{{#withfooController.modelas |foo|}}
<p>But inside of the "with" within the loop, "this" is {{this}}</p>
{{/with}}{{/each}}
and the application template being just,
{{render"foos"items}}
Since I'm using the non-context-switching versions of all the helpers, I expect every {{this}} to be the same (namely, FoosController). But instead the first two {{this}} statements print out FoosController, but the third prints out FooController.
Is this a bug or am I completely misunderstanding something?
With the following controllers,
and the following
foos
template,and the
application
template being just,Since I'm using the non-context-switching versions of all the helpers, I expect every
{{this}}
to be the same (namely,FoosController
). But instead the first two{{this}}
statements print outFoosController
, but the third prints outFooController
.Is this a bug or am I completely misunderstanding something?
JSBin here: http://jsbin.com/fuqota/5/edit?html,js,output
The text was updated successfully, but these errors were encountered: