Firefox compatibility fixes.

This commit is contained in:
Alan Johnson
2010-09-11 18:07:40 -04:00
parent 2c3b97bb66
commit b4bac7f4f9
2 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ module("basic context");
var shouldCompileTo = function(string, hash, result, message) {
var template = Handlebars.compile(string);
var params = toString.call(hash) === "[object Array]" ? hash : [hash, undefined];
var params = Object.prototype.toString.call(hash) === "[object Array]" ? hash : [hash, undefined];
equal(template.apply(this, params), result, message);
}