From 72264231d5018b66e539a1b5ef245539cb0ec4da Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Thu, 8 Dec 2016 01:29:04 +0000 Subject: [PATCH] updated vdom bench --- benchmarks/vdom-bench/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/vdom-bench/main.js b/benchmarks/vdom-bench/main.js index 6600300ae..3dbd631e2 100644 --- a/benchmarks/vdom-bench/main.js +++ b/benchmarks/vdom-bench/main.js @@ -16,9 +16,9 @@ for (i = 0; i < nodes.length; i++) { n = nodes[i]; if (n.children !== null) { - children[i] = createVNode(34, 'div', null, renderTree(n.children), n.key, null, true); + children[i] = createVNode(34, 'div', null, renderTree(n.children), null, n.key, null, true); } else { - children[i] = createVNode(2, 'span', null, n.key, n.key, null, true); + children[i] = createVNode(2, 'span', null, n.key, null, n.key, null, true); } } return children; @@ -39,14 +39,14 @@ BenchmarkImpl.prototype.render = function () { Inferno.render( - createVNode(34, 'div', null, renderTree(this.a), null, null, true), + createVNode(34, 'div', null, renderTree(this.a), null, null, null, true), this.container ); }; BenchmarkImpl.prototype.update = function () { Inferno.render( - createVNode(34, 'div', null, renderTree(this.b), null, null, true), + createVNode(34, 'div', null, renderTree(this.b), null, null, null, true), this.container ); };