1st - I’m new to ember and I’m trying to understand how everything works yet.
2nd - I’ve searched on stackoverflow and here for a solutiion, but couldn’t find anything, probably because I don’t know exactly what is the term to look for =P
Well, the situation is as follow…
I have an API that I made before start using ember, and now I’m trying to use this API with my ember app, but when I try to use some of the properties from this API, if a internal function changes the property, ember throws an Uncaught Error like this:
Assertion Failed: You must use Ember.set() to access this property (of [object Object])
This only happens when I’m using a nested object, I’ve made this jsbin for better understanding.
And my API has a callback implementation that notify changes on the exposed properties that the app may use, so I can bind a function to update the property in ember too…
I just thought that was some other way of using exposed objects from an external API without having to do this cloning workaround.
Later on I plan to create an Ember compliant version of the API, but for now it’s pratically impossible to refactor 15k lines of code due to project deadline. =P