(key: EditorValueKey, resolve: (data: any) => void, once?: boolean)
| 229 | } |
| 230 | |
| 231 | private setWait(key: EditorValueKey, resolve: (data: any) => void, once?: boolean) { |
| 232 | const waits = this.waits.get(key) |
| 233 | if (waits) { |
| 234 | waits.push({ resolve, once }) |
| 235 | } else { |
| 236 | this.waits.set(key, [{ resolve, once }]) |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | private delWait(key: EditorValueKey, fn: any) { |
| 241 | const waits = this.waits.get(key) |