New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong assertion: The value that #each loops over must be an Array. #4365
Comments
To be honest, I was not aware that you could use the I believe that this is just a fundamental difference between the Ember I'm happy to reopen if there is something I'm missing here. |
Just ran into this. What about people that are used to use |
@rjackson I have a problem that may be related to this. I have a linked list implementation in Ember and it is made enumerable using Enumerable Mixin interface as well. I want to use Ember each helper with this but it expects an Array. Can each helper be changed to work with Enumerable or should I implement my own helper for this case. I am currently using toArray after each update to the linked list which is not efficient. |
@rwjblue Is there any documentation where I can see the differences between standard handlebars and the ember version? I was getting the same error and finding the reason was frustrating, since according to the handlebars docs, it should work. And now I'm not sure anymore what features can I use. |
I'm reopening this but as a documentation issue instead of a bug. It definitely seems like there's some confusion here about behavior that we should try to clear up. |
Object keys are stable on all modern browsers. Once diffing lands we'll lbe able to support this fairly simply. Presently it is difficult because we don't observe insertion/deletion of keys on objects. |
The ability to run |
the {{each stuff now just blindly enumerates over forEachs |
The problem is that I can't pass the object to {{#each}} Handlebarsjs conditional, because it raises exception in ember.js code. Handlebarsjs {{#each}} can iterate through objects, here is the excerpt from Handlebars v1.3.0: http://pastebin.com/UTtvnhcB
The place in ember.js where this occurs:
The text was updated successfully, but these errors were encountered: