all repos — h3 @ c8fe1b23eac3be7beb33b222731bf5e65214424c

A tiny, extremely minimalist JavaScript microframework.

Fixed errors, everything seems to work!
h3rald h3rald@h3rald.com
Tue, 14 Apr 2020 14:09:45 +0200
commit

c8fe1b23eac3be7beb33b222731bf5e65214424c

parent

f9bcb98e362ff4f975a5dc7adf4cef4e97ed0dbe

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M h3.jsh3.js

@@ -60,7 +60,7 @@

from(data) { this.type = data.type; this.value = data.value; - this.element = data.value; + this.element = data.element; this.id = data.id; this.children = data.children; this.attributes = data.attributes;

@@ -428,7 +428,7 @@ // Configure update function

const vnode = router.routes[router.route.def](); updateFn = () => { const fn = router.routes[router.route.def]; - vnode.update({node: element, vnode: fn()}) + vnode.update({node: element.childNodes[0], vnode: fn()}) } }