fix YMap.keys()

This commit is contained in:
Kevin Jahns 2017-11-07 19:56:03 -08:00
parent 9298903bdb
commit b7c05ba133

View File

@ -36,7 +36,7 @@ export default class YMap extends Type {
return map return map
} }
keys () { keys () {
return this._map.keys() return Array.from(this._map.keys()).filter(x => !x._deleted)
} }
delete (key) { delete (key) {
this._transact((y) => { this._transact((y) => {