more comments

This commit is contained in:
David Greenspan
2013-11-04 15:50:47 -08:00
parent a6ca1b3925
commit 016fbf7709

View File

@@ -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);
}
});