Skip to content

Commit

Permalink
Fix strict mode bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpeiris committed Mar 16, 2013
1 parent f66abce commit 409b64a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions javascript/lifeboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function LifeBoard(){

for (var i = 0; i < 16; i++)
{
tup = [i & 1, (i & 2) / 2, (i & 4) / 4, (i & 8) / 8];
var tup = [i & 1, (i & 2) / 2, (i & 4) / 4, (i & 8) / 8];

var objtup = [];

Expand Down Expand Up @@ -164,7 +164,7 @@ function LifeBoard(){
};

this.getAll = function(rect){
cells = [];
var cells = [];
_root.getList(cells, _originx, _originy, rect);
return cells;
};
Expand Down Expand Up @@ -252,4 +252,4 @@ function LifeBoard(){
this.width = function(){
return _root.width();
};
};
};
4 changes: 2 additions & 2 deletions javascript/lifenode.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ function extend(from, to)

for (var name in from)
{
to[name] = typeof to[name] == "undefined" ? this.extend(from[name], null) : to[name];
to[name] = typeof to[name] == "undefined" ? extend(from[name], null) : to[name];
}

return to;
}
}

0 comments on commit 409b64a

Please sign in to comment.