Fix options undefined error

This commit is contained in:
Riley Shaw 2014-09-27 17:45:40 -07:00
parent e96dfa005e
commit 9da49dbefb
3 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,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;

View File

@ -1,6 +1,6 @@
{
"name": "terra",
"version": "1.3.0-beta",
"version": "1.3.1-beta",
"homepage": "https://github.com/rileyjshaw/terra",
"authors": [
"rileyjshaw <i@rileyjshaw.com>"

View File

@ -1,6 +1,6 @@
{
"name": "terra",
"version": "1.3.0-beta",
"version": "1.3.1-beta",
"description": "A JavaScript library for simple biological simulations and cellular automata.",
"main": "dist/terra.min.js",
"scripts": {