summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/runtime.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-09-02 18:25:03 -0500
committerkpdecker <kpdecker@gmail.com>2013-09-02 18:25:03 -0500
commit1e8409efa6ff5c9ecc44ab3850b219266b562640 (patch)
tree0bb1e62e45fc4ab04b344a0396e667300a40ae1e /lib/handlebars/runtime.js
parenta2687fdf501a878df264d9cbefd31c0601a077e7 (diff)
downloadhandlebars.js-1e8409efa6ff5c9ecc44ab3850b219266b562640.zip
handlebars.js-1e8409efa6ff5c9ecc44ab3850b219266b562640.tar.gz
handlebars.js-1e8409efa6ff5c9ecc44ab3850b219266b562640.tar.bz2
Fix merge errors
Diffstat (limited to 'lib/handlebars/runtime.js')
-rw-r--r--lib/handlebars/runtime.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js
index eeef182..4604312 100644
--- a/lib/handlebars/runtime.js
+++ b/lib/handlebars/runtime.js
@@ -3,18 +3,18 @@ import { COMPILER_REVISION, REVISION_CHANGES } from "./base";
function checkRevision(compilerInfo) {
var compilerRevision = compilerInfo && compilerInfo[0] || 1,
- currentRevision = Handlebars.COMPILER_REVISION;
+ currentRevision = COMPILER_REVISION;
if (compilerRevision !== currentRevision) {
if (compilerRevision < currentRevision) {
- var runtimeVersions = Handlebars.REVISION_CHANGES[currentRevision],
- compilerVersions = Handlebars.REVISION_CHANGES[compilerRevision];
- throw "Template was precompiled with an older version of Handlebars than the current runtime. "+
- "Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").";
+ var runtimeVersions = REVISION_CHANGES[currentRevision],
+ compilerVersions = REVISION_CHANGES[compilerRevision];
+ throw new Error("Template was precompiled with an older version of Handlebars than the current runtime. "+
+ "Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").");
} else {
// Use the embedded version info since the runtime doesn't know about this revision yet
- throw "Template was precompiled with a newer version of Handlebars than the current runtime. "+
- "Please update your runtime to a newer version ("+compilerInfo[1]+").";
+ throw new Error("Template was precompiled with a newer version of Handlebars than the current runtime. "+
+ "Please update your runtime to a newer version ("+compilerInfo[1]+").");
}
}
}
@@ -76,7 +76,7 @@ export function template(templateSpec, Hbars, compile) {
return function(context, options) {
options = options || {};
- var namespace = options.partial ? options : Handlebars,
+ var namespace = options.partial ? options : Hbars,
helpers,
partials;