don't require mount args in mountView, like in UIView interface

This commit is contained in:
Bruno Windels 2021-09-16 15:23:48 +02:00
parent 060f4aa297
commit 68fb093c9e

View File

@ -17,7 +17,7 @@ limitations under the License.
import {UIView, IMountArgs} from "./types"; import {UIView, IMountArgs} from "./types";
import {tag} from "./html"; import {tag} from "./html";
export function mountView(view: UIView, mountArgs: IMountArgs): HTMLElement { export function mountView(view: UIView, mountArgs?: IMountArgs): HTMLElement {
let node; let node;
try { try {
node = view.mount(mountArgs); node = view.mount(mountArgs);