add support for boolean properties, such as 'checked'

fix #5
This commit is contained in:
Géry Debongnie
2019-03-20 13:16:12 +01:00
parent 5da7df8bf0
commit 9baf3ad4a7
4 changed files with 140 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import h from "../libs/snabbdom/src/h";
import sdAttrs from "../libs/snabbdom/src/modules/attributes";
import sdProps from "../libs/snabbdom/src/modules/props";
import sdListeners from "../libs/snabbdom/src/modules/eventlisteners";
import { init } from "../libs/snabbdom/src/snabbdom";
import { VNode } from "../libs/snabbdom/src/vnode";
@@ -35,7 +36,7 @@ export interface Meta<T extends Env, Props> {
boundHandlers: { [key: number]: any };
}
const patch = init([sdListeners, sdAttrs]);
const patch = init([sdListeners, sdAttrs, sdProps]);
export interface Type<T> extends Function {
new (...args: any[]): T;