diff --git a/docs/docs.rst b/docs/docs.rst index 8298ba9..3eec1a4 100644 --- a/docs/docs.rst +++ b/docs/docs.rst @@ -10,17 +10,17 @@ and some extensions that allow for an efficient component system. These extensions are: ``VNodeKind.int`` - The node havs a single integer field. + The node has a single integer field. ``VNodeKind.bool`` The node has a single boolean field. -``VNodeKint.vthunk`` +``VNodeKind.vthunk`` The node is a `virtual thunk`:idx:. This means there is a function attached to it that produces the ``VNode`` structure on demand. -``VNodeKint.dthunk`` +``VNodeKind.dthunk`` The node is a `DOM thunk`:idx:. This means there is a function attached to it that produces the ``Node`` DOM structure on demand. @@ -53,6 +53,6 @@ Event system Karax does not abstract over the event system the DOM offers much: The same ``Event`` structure is used. Every callback has the -signature ``proc (ev: Event; n: VNode)``. +signature ``proc (ev: Event; n: VNode)`` or empty ``proc ()``. diff --git a/examples/carousel/carousel.html b/examples/carousel/carousel.html index 979dd38..464f960 100644 --- a/examples/carousel/carousel.html +++ b/examples/carousel/carousel.html @@ -9,7 +9,7 @@
- + diff --git a/examples/mediaplayer/playerapp.html b/examples/mediaplayer/playerapp.html index 9e076e6..7800d32 100644 --- a/examples/mediaplayer/playerapp.html +++ b/examples/mediaplayer/playerapp.html @@ -9,7 +9,7 @@
- + diff --git a/examples/scrollapp/scrollapp.html b/examples/scrollapp/scrollapp.html index 1ff8b1b..f7ca085 100644 --- a/examples/scrollapp/scrollapp.html +++ b/examples/scrollapp/scrollapp.html @@ -9,7 +9,7 @@
- + diff --git a/examples/todoapp/todoapp.html b/examples/todoapp/todoapp.html index 488a3bf..bec9d65 100644 --- a/examples/todoapp/todoapp.html +++ b/examples/todoapp/todoapp.html @@ -10,7 +10,7 @@
- + diff --git a/experiments/ajaxtest.html b/experiments/ajaxtest.html index 39062ad..2927a18 100644 --- a/experiments/ajaxtest.html +++ b/experiments/ajaxtest.html @@ -9,5 +9,5 @@
- + diff --git a/experiments/echartstest.html b/experiments/echartstest.html index fd510bd..8c9b225 100644 --- a/experiments/echartstest.html +++ b/experiments/echartstest.html @@ -10,5 +10,5 @@
- + diff --git a/experiments/refs/demo.html b/experiments/refs/demo.html index e1fe419..941333a 100644 --- a/experiments/refs/demo.html +++ b/experiments/refs/demo.html @@ -8,6 +8,6 @@
- + diff --git a/experiments/scrollapp.html b/experiments/scrollapp.html index ad3ce2f..8b909f1 100644 --- a/experiments/scrollapp.html +++ b/experiments/scrollapp.html @@ -10,7 +10,7 @@
- + diff --git a/karax/karax.nim b/karax/karax.nim index 6c69325..ecc57fe 100644 --- a/karax/karax.nim +++ b/karax/karax.nim @@ -254,7 +254,10 @@ proc eq(a, b: VNode; recursive: bool): EqResult = for i in 0.. - + diff --git a/tests/domEventTests.html b/tests/domEventTests.html index 26e161f..dbbff0d 100644 --- a/tests/domEventTests.html +++ b/tests/domEventTests.html @@ -8,6 +8,6 @@
- +