From 22824bde5b9c4382f3efd983e45916646d6ef9e9 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Thu, 27 Dec 2012 00:59:13 -0500 Subject: [PATCH] added universe toggle logic --- 2d.js | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.30.2