1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

use new api for finder

This commit is contained in:
Dick Choi
2016-09-08 18:16:37 +09:00
parent 519ea1a33f
commit 40fc63ea0c
7 changed files with 76 additions and 52 deletions

View File

@@ -38,15 +38,22 @@ class MutableMap {
}
return result
}
toJS () {
let result = {}
for (let [key, value] of this._map) {
if (value instanceof MutableSet || value instanceof MutableMap) {
value = value.toJS()
}
result[key] = value
}
return result
}
}
class MutableSet {
constructor (iterable) {
if (iterable instanceof MutableSet) {
this._set = new Set(iterable._set)
} else {
this._set = new Set(iterable)
}
this._set = new Set(iterable)
}
add (...args) {