aboutsummaryrefslogtreecommitdiff
path: root/src/rx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/rx.ts')
-rw-r--r--src/rx.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rx.ts b/src/rx.ts
index 61a7e7f..a7d88f2 100644
--- a/src/rx.ts
+++ b/src/rx.ts
@@ -222,9 +222,9 @@ class Sequence<A> extends Rx<Array<A>> {
// Mount
-export function mount(html: Html): Cancelable {
+export function mount(element: HTMLElement, html: Html): Cancelable {
const state = new State()
- let appendRes = appendChild(state, document.body, html)
+ let appendRes = appendChild(state, element, html)
return appendRes.cancel
}