In my app a model object myModelObject with a property foo is created. Initially foo is set to an integer. foo can be modified in an input form field.
Modifying foo in this form field to be some other integer results in foo changing to be a string.
- Example w/o Ember Data: http://jsbin.com/qahafapixebe/3/edit
- Example with Ember Data: http://jsbin.com/nujesovugudo/2/edit
Is there a way to ensure that a property stays an integer after being modified via form field?
Note: App.myModelObject.set("foo", 23) results in foo staying an integer.
I use Ember 1.7.0.