From: Dylan Lloyd Date: Thu, 27 Dec 2012 05:59:13 +0000 (-0500) Subject: added universe toggle logic X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=22824bde5b9c4382f3efd983e45916646d6ef9e9;p=cellular-automaton.git added universe toggle logic --- diff --git a/2d.js b/2d.js index 4dd3835..c3a4bbe 100644 --- a/2d.js +++ b/2d.js @@ -63,6 +63,7 @@ $(document).ready(function(){ } this.toggle = function() { + this.running ? this.stop() : this.start(); } this.redraw = function() {