medikoo / dbjs

In-Memory Database Engine for JavaScript
MIT License
28 stars 4 forks source link

Support primitive representations of an object #62

Open medikoo opened 8 years ago

medikoo commented 8 years ago

/cc @mtuchowski @kamsi

It's also related to https://github.com/medikoo/dbjs/issues/53

Currently using valueOf with dbjs object is supported naturally by language, but it's not recognized by dbjs internals, e.g. observables

When primitive representation of observed object is changed, it'll be good that its observers are notified about it.