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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user