git ssb

1+

Matt McKegg / mutant



Commit 2137c1205c6d9510c9a30abd13c5d3765a7e32d8

dict-to-collection: fix updating of keys

Matt McKegg committed on 9/21/2016, 12:12:49 PM
Parent: 6d3b3f5d04175fa2974bdd753f0f5ae53a01e924

Files changed

dict-to-collection.jschanged
dict-to-collection.jsView
@@ -15,8 +15,11 @@
1515 for (var i = 0; i < length; i++) {
1616 var key = keys[i]
1717 var item = obs.get(key)
1818 if (shouldUpdate(item, raw[i])) {
19+ if (raw[i].key() !== key) {
20+ raw[i].key.set(key)
21+ }
1922 if (raw[i].value !== item) {
2023 raw[i].value.set(item)
2124 }
2225 } else {

Built with git-ssb-web