How Does BreezeJS Track Property Changes
I am curious about how BreezeJS is able to determine which properties of an entity have changed and still support IE8? I am in the need of similar functionality for a library I am
Solution 1:
It depends on the "modelLibrary" in use, for backbone and knockout Breeze uses the "observability" of the underlying knockout or backbone objects. For something like AngularJS, where there is no requirement for an underlying object to support observability, Breeze uses its "backingStore" model library which does something very similar to the Object.watch implementation that you are pointing to in your question.
The "backingStore" implementation, like the Object.watch implementation above will NOT work on IE8 because there is no support for javascripts "defineProperty".
Hope this helps.
Post a Comment for "How Does BreezeJS Track Property Changes"