Fix options undefined error

This commit is contained in:
Riley Shaw 2014-09-27 17:46:15 -07:00
parent 9da49dbefb
commit 080547d05b
2 changed files with 2 additions and 1 deletions

1
dist/terra.js vendored
View File

@ -318,6 +318,7 @@ var dom = require('./dom.js');
* @param {array} background an RGB triplet for the canvas' background
*/
function Terrarium(width, height, options) {
options = options || {};
var cellSize = options.cellSize || 10;
this.width = width;
this.height = height;

2
dist/terra.min.js vendored

File diff suppressed because one or more lines are too long