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
Hi all, I am experiencing some weird problems in some cases with Ember, notably after the update to RC2, reported a bug emberjs/ember.js#2622 but I'm not sure it's an ember or handlebars bug.
Here's what happens:
{{#each filter in App.itemsController}}
{{#view App.MyView}}
...code..
{{/view}}
{{/each}}
just a simple set of views inside an each.
If no characters are put between the #each and the #view, sometimes code belonging to a totally different part of the file is shown on the page. Code that should be hidden, or belonging to another #if, for example.
The issue is fixed if I put an empty char (I use in my case as the editor strips empty spaces, but any character changes the wrong behavior to a good one).
{{#each filter in App.itemsController}}
{{#view App.MyView}}
...code..
{{/view}}
{{/each}}
Closing as dupe. We are working towards a rc4 release but in the mean time my recommendation would be to use the v1.0.10 release as the dist content there is identical to what would have been in a client-side release at that point in time.
Hi all, I am experiencing some weird problems in some cases with Ember, notably after the update to RC2, reported a bug emberjs/ember.js#2622 but I'm not sure it's an ember or handlebars bug.
Here's what happens:
{{#each filter in App.itemsController}}
{{#view App.MyView}}
...code..
{{/view}}
{{/each}}
just a simple set of views inside an each.
If no characters are put between the #each and the #view, sometimes code belonging to a totally different part of the file is shown on the page. Code that should be hidden, or belonging to another #if, for example.
The issue is fixed if I put an empty char (I use in my case as the editor strips empty spaces, but any character changes the wrong behavior to a good one).
{{#each filter in App.itemsController}}
{{#view App.MyView}}
...code..
{{/view}}
{{/each}}
Consider this, which is right: http://jsfiddle.net/eHtgn/
and this, that has the bug: http://jsfiddle.net/WSNpD/1/
The only difference between the 2 is that in the first I added 2 spaces to surround the #each:
{{#each item in content}}
This problem is not limited to the couple #each / #view put in a subsequent line, it also happens for example if I put a #unless in the middle, like:
I need a space or something after each block helper, or it does not work. Replicated in chrome, ff, safari.
The text was updated successfully, but these errors were encountered: