From 420a5a804cdf0a61f94d740cf12c46a73239d578 Mon Sep 17 00:00:00 2001 From: Yury Proshchenko Date: Sun, 14 Apr 2013 23:47:30 +0400 Subject: [PATCH] Fix global variable leak --- lib/dust.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dust.js b/lib/dust.js index fbead9e..aec62bc 100644 --- a/lib/dust.js +++ b/lib/dust.js @@ -172,7 +172,7 @@ Context.prototype.getBlock = function(key) { } Context.prototype.shiftBlocks = function(locals) { - var blocks = this.blocks; + var newBlocks, blocks = this.blocks; if (locals) { if (!blocks) {