mirror of
https://github.com/rileyjshaw/terra.git
synced 2024-11-21 04:54:23 +00:00
Fix options undefined error
This commit is contained in:
parent
e96dfa005e
commit
9da49dbefb
@ -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;
|
||||
|
@ -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>"
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user