Commit f43712e86ae2ac4d1c6097f8b17eb2e21de06298
map: fix release of removed items
Matt McKegg committed on 9/7/2016, 2:47:57 AMParent: bf170bc7b3672405705146b57533b5850f041abc
Files changed
map.js | changed |
map.js | ||
---|---|---|
@@ -92,8 +92,11 @@ | ||
92 | 92 | // clean up cache |
93 | 93 | Array.from(lastValues.keys()).filter(notIncluded, obs).forEach(deleteEntry, lastValues) |
94 | 94 | items.length = getLength(obs) |
95 | 95 | values.length = items.length |
96 | + for (var index = items.length; index < raw.length; index++) { | |
97 | + rebind(index) | |
98 | + } | |
96 | 99 | } |
97 | 100 | |
98 | 101 | return changed |
99 | 102 | } |
Built with git-ssb-web