From 016fbf7709af8f2d755719aedef4b889884d70f5 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 4 Nov 2013 15:50:47 -0800 Subject: [PATCH] more comments --- packages/ui/render2_tests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/render2_tests.js b/packages/ui/render2_tests.js index 97364b9dae..d6594ddd11 100644 --- a/packages/ui/render2_tests.js +++ b/packages/ui/render2_tests.js @@ -239,6 +239,7 @@ Tinytest.add("ui - render2 - components", function (test) { (this.number < 3 ? myComponent : HR())]; }, rendered: function () { + // `this` is the template instance var nodeDescr = function (node) { if (node.nodeType === 8) // comment return ''; @@ -262,6 +263,7 @@ Tinytest.add("ui - render2 - components", function (test) { nodeDescr(end)); }, destroyed: function () { + // `this` is the template instance buf.push('destroyed ' + this.data); } });