Rename "vm" to "runtime" for clarity

This commit is contained in:
Yehuda Katz
2011-12-27 18:15:44 -08:00
parent 163a92ebe0
commit 757d5250dc
4 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = Handlebars;
require("./handlebars/utils");
require("./handlebars/compiler");
require("./handlebars/vm");
require("./handlebars/runtime");
// BEGIN(BROWSER)
@@ -54,7 +54,7 @@ Handlebars.VM = {
} else if(partial instanceof Function) {
return partial(context, options);
} else if (!Handlebars.compile) {
throw new Handlebars.Exception("The partial " + name + " could not be compiled when running in vm mode");
throw new Handlebars.Exception("The partial " + name + " could not be compiled when running in runtime-only mode");
} else {
partials[name] = Handlebars.compile(partial);
return partials[name](context, options);