mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't require mount args in mountView, like in UIView interface
This commit is contained in:
parent
060f4aa297
commit
68fb093c9e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user