(id: string, options: RawEditorOptions, targetElm: HTMLElement)
| 426 | let targets: HTMLElement[]; |
| 427 | |
| 428 | const createEditor = (id: string, options: RawEditorOptions, targetElm: HTMLElement) => { |
| 429 | const editor: Editor = new Editor(id, options, self); |
| 430 | editors.push(editor); |
| 431 | |
| 432 | editor.on('init', () => { |
| 433 | if (++initCount === targets.length) { |
| 434 | provideResults(editors); |
| 435 | } |
| 436 | }); |
| 437 | |
| 438 | editor.targetElm = editor.targetElm || targetElm; |
| 439 | editor.render(); |
| 440 | }; |
| 441 | |
| 442 | DOM.unbind(window, 'ready', initEditors); |
| 443 | execCallback('onpageload'); |
no test coverage detected
searching dependent graphs…