diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index b148bbb..e38f157 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -539,10 +539,7 @@ Handlebars.JavaScriptCompiler = function() {}; var source = this.mergeSource(); if (!this.isChild) { - source = "if (Handlebars.VERSION !== '"+Handlebars.VERSION+"') {\n"+ - "throw 'Template was compiled with "+Handlebars.VERSION+", but runtime is '+Handlebars.VERSION;\n"+ - "}\n"+ - source; + source = "this.compiledVersion = '"+Handlebars.VERSION+"';\n"+source; } if (asObject) { |