From 7978637505469d8c06f6e8e10bee51ac7ba0e9f1 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Sat, 31 Jan 2015 23:43:38 -0500
Subject: [PATCH] debugging

---
 js/menus/LatticeMenuView.js | 2 +-
 js/models/Lattice.js        | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/js/menus/LatticeMenuView.js b/js/menus/LatticeMenuView.js
index d3ca8e8a..4a946653 100644
--- a/js/menus/LatticeMenuView.js
+++ b/js/menus/LatticeMenuView.js
@@ -78,7 +78,7 @@ LatticeMenuView = Backbone.View.extend({
                         <li><a class="connectionType" data-type="<%= key %>" href="#"><%= allConnectionTypes[cellType][key] %></a></li>\
                     <% }); %>\
                 </ul>\
-            </div><br/>\
+            </div><br/><br/>\
         Scale:&nbsp;&nbsp;<input id="latticeScale" value="<%= scale %>" placeholder="enter scale" class="form-control" type="text"><br/>\
         NumCells:&nbsp;&nbsp;<%= numCells %><br/>\
         <br/>\
diff --git a/js/models/Lattice.js b/js/models/Lattice.js
index bd3d5683..0032b21d 100644
--- a/js/models/Lattice.js
+++ b/js/models/Lattice.js
@@ -97,10 +97,10 @@ Lattice = Backbone.Model.extend({
         this._iterCells(this.get("cells"), function(cell){
             if (cell) cell.destroy();
         });
-        this.set("cells", this.defaults.cells);
-        this.set("cellsMax", this.defaults.cellsMax);
-        this.set("cellsMin", this.defaults.cellsMin);
-        this.set("nodes", this.defaults.nodes);
+        this.set("cells", [[[null]]]);
+        this.set("cellsMax", {x:0, y:0, z:0});
+        this.set("cellsMin", {x:0, y:0, z:0});
+        this.set("nodes", []);
         this.set("numCells", 0);
         this.get("basePlane").set("zIndex", 0);
         window.three.render();
-- 
GitLab