Comparing version 0.4.21 to 0.4.22
@@ -157,4 +157,9 @@ var xjst = require('../xjst'), | ||
if (options['no-opt']) { | ||
var locals = []; | ||
for (var i = ast._localStart; i < ast._localEnd; i++) { | ||
locals.push('__r' + i); | ||
} | ||
// Just compile `template` to `if`, and `local` | ||
body = [ | ||
locals.length > 0 ? 'var ' + locals.join(', ') + ';\n' : '', | ||
XJSTCompiler.match(ast, 'topLevelEx', options.ometa) | ||
@@ -161,0 +166,0 @@ ]; |
{ | ||
"name": "xjst", | ||
"description": "XSLT inspired JavaScript templates (with spices)", | ||
"version": "0.4.21", | ||
"version": "0.4.22", | ||
"homepage": "http://github.com/veged/xjst", | ||
@@ -6,0 +6,0 @@ "author": "Sergey Berezhnoy <veged@mail.ru> (http://github.com/veged)", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114492
2107