Skip to content

Commit

Permalink
Merge pull request #262 from naholyr/patch-1
Browse files Browse the repository at this point in the history
FIX global leak
  • Loading branch information
wycats committed Jun 25, 2012
2 parents 0afc8b5 + 7a393a9 commit ff1547e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlebars/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Handlebars.JavaScriptCompiler = function() {};
this.children[guid] = result;

for(var i=0, l=result.depths.list.length; i<l; i++) {
depth = result.depths.list[i];
var depth = result.depths.list[i];

if(depth < 2) { continue; }
else { this.addDepth(depth - 1); }
Expand Down Expand Up @@ -831,7 +831,7 @@ Handlebars.JavaScriptCompiler = function() {};
var programParams = [child.index, child.name, "data"];

for(var i=0, l = depths.length; i<l; i++) {
depth = depths[i];
var depth = depths[i];

if(depth === 1) { programParams.push("depth0"); }
else { programParams.push("depth" + (depth - 1)); }
Expand Down

0 comments on commit ff1547e

Please sign in to comment.