Skip to content
Snippets Groups Projects
Commit 00423fa6 authored by svornost's avatar svornost
Browse files

Better yet, just use Node.

parent 65ad4be3
No related branches found
No related tags found
1 merge request!8556Render JSRE onto a persistent node
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
App.DomPassage = class extends Passage { App.DomPassage = class extends Passage {
/** /**
* @param {string} title * @param {string} title
* @param {function():(DocumentFragment|HTMLElement)} callback * @param {function():Node} callback
* @param {string[]} tags * @param {string[]} tags
*/ */
constructor(title, callback, tags = []) { constructor(title, callback, tags = []) {
...@@ -18,7 +18,7 @@ App.DomPassage = class extends Passage { ...@@ -18,7 +18,7 @@ App.DomPassage = class extends Passage {
} }
/** /**
* @returns {DocumentFragment|HTMLElement} * @returns {Node}
*/ */
render() { render() {
return this.callback(); return this.callback();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment