From 9e3d56bfd9179d4cf8d3cc44d7c2bcca69e9d335 Mon Sep 17 00:00:00 2001 From: Kayo Phoenix Date: Sat, 5 Dec 2015 22:48:32 +0500 Subject: [PATCH 1/2] Fixed README (closed module example code) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8856a05..25b7b61 100644 --- a/README.md +++ b/README.md @@ -237,6 +237,7 @@ var myModule = { // invoked whenever a virtual node is updated } }; +``` With this mechanism you can easily argument the behaviour of Snabbdom. For demonstration take a look at the implementations of the From 0108f659fd1cef2ae54cba716f12347fdc95ed62 Mon Sep 17 00:00:00 2001 From: Kayo Phoenix Date: Sat, 5 Dec 2015 22:53:14 +0500 Subject: [PATCH 2/2] Fixed example of properties module --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25b7b61..77f6800 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ h('a', {class: {active: true, selected: false}}, 'Toggle'); Allows you to set properties on DOM elements. ```javascript -h('a', {props: {href: '/foo'}, 'Go to Foo'); +h('a', { props: {href: '/foo'} }, 'Go to Foo'); ``` ### The attributes module