Start porting another test

This commit is contained in:
David Greenspan
2014-05-29 14:31:05 -07:00
parent 97be62f7c2
commit 0d36793c8d

View File

@@ -224,9 +224,12 @@ Tinytest.add("spacebars-tests - template_tests - inclusion dotted args", functio
var tmpl = Template.spacebars_template_test_inclusion_dotted_args;
var initCount = 0;
tmpl.foo = Template.spacebars_template_test_bracketed_this.extend({
init: function () { initCount++; }
});
tmpl.foo = Template.spacebars_template_test_bracketed_this.constructor.extend({
constructor: function () {
Template.spacebars_template_test_bracketed_this.constructor.call(this);
initCount++;
}
}).prototype;
var R = ReactiveVar('david');
tmpl.bar = function () {
// make sure `this` is bound correctly