mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Start porting another test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user