commit | 2446d7be394f40fafdaca6464f868c8c6d097a86 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Thu Nov 17 10:35:03 2016 -0800 |
committer | GitHub <noreply@github.com> | Thu Nov 17 10:35:03 2016 -0800 |
tree | 33343d1337628d6ef0e8269f390c9b92ba99314c | |
parent | 81bbeab8e6ca3b3fb2fda92a8cfd12b826011f8c [diff] |
Add `spy` constructor to ObservableMap (#4) Sometimes it's useful to observe changes on top of a Map implementation which has different behavior from one of the built in map types. - Add a test calling the 'spy' constructor Most functionality is already tested. Make sure that calling the 'spy' constructor delegates to the underlying map implementation.
Support for detecting and being notified when an object is mutated.
There are two general ways to detect changes:
Observable.changes
and be notified when an object changesDiffer.diff
to determine changes between two objects