From 0d36793c8d0b167dd911ca7bfdebe71af369ee54 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Thu, 29 May 2014 14:31:05 -0700 Subject: [PATCH] Start porting another test --- packages/spacebars-tests/template_tests.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/spacebars-tests/template_tests.js b/packages/spacebars-tests/template_tests.js index 39b3c9c045..098751c1a0 100644 --- a/packages/spacebars-tests/template_tests.js +++ b/packages/spacebars-tests/template_tests.js @@ -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