Got Qunit tests running through RSpec and fixed a bunch of bugs... 33 fails from the original suite to go

This commit is contained in:
wycats
2010-11-28 17:36:05 -08:00
parent 454d0a85b7
commit 9846fb8a28
6 changed files with 599 additions and 14 deletions
+5 -1
View File
@@ -96,11 +96,13 @@ Handlebars.Runtime.prototype = {
for(var i=0, l=statements.length; i<l; i++) {
this.accept(statements[i]);
}
return this.buffer;
},
mustache: function(mustache) {
var idObj = this.accept(mustache.id);
var params = this.evaluateParams(mustache.params);
var params = mustache.params;
for(var i=0, l=params.length; i<l; i++) {
params[i] = this.accept(params[i]).data;
@@ -137,6 +139,8 @@ Handlebars.Runtime.prototype = {
this.buffer += content.string;
},
comment: function() {},
evaluateParams: function(params) {
for(var i=0, l=params.length; i<l; i++) {
params[i] = this.accept(params[i]).data;