I create a model with a numeric id. I have a list on the controller with numeric id’s.
When I use the list as content in an Ember.Select, and use the model.id as value, they don’t match (and due to the two-way binding, it overwrites the id field). The field model.id is in fact a String object now.
This is visualized in http://jsbin.com/hirapuhalipi/1/edit where I have a comment before a parseInt()-line. With this line in use, matching works, since I’ve told it to have the same type as the option-list in the select. Without the line, the above error is visible.
Why does it act like this? Shouldn’t id be a number if I create the record with it as a number? Should the Select have been used in another fashion?