Firefox compatibility fixes.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user