diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index c08705a..1d88861 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -214,8 +214,8 @@ HTMLTemplateElement.decorate(this.template); if (this.expressions) this.template.bindingDelegate = new PolymerExpressions; - - this.template.content.appendChild(this.fragment.cloneNode(true)); + var clone = this.fragment.cloneNode(true); + this.template.content.appendChild(clone); this.template.setAttribute('repeat', ''); }, @@ -225,8 +225,10 @@ }, teardownMDVVariant: function() { - this.template.bindings.iterator.close(); + if (this.template.bindings) + this.template.bindings.iterator.close(); this.template = undefined; + testDiv.innerHTML = ''; }, setupHandlebarsVariant: function() { diff --git a/benchmark/index.html b/benchmark/index.html index e20dc09..1893c3f 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -65,7 +65,7 @@

Template instantiation benchmarks


Binding Density (%): -
+
MDV: Handlebars: