From 62e4c906d1edbc0a3d475e2382ba288882d8d8e1 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Tue, 3 Mar 2015 15:46:06 -0500
Subject: [PATCH] a few small changes

---
 js/models/AppState.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/js/models/AppState.js b/js/models/AppState.js
index c9113726..4bb09978 100644
--- a/js/models/AppState.js
+++ b/js/models/AppState.js
@@ -16,7 +16,6 @@ AppState = Backbone.Model.extend({
         lastSimulationTab: "physics",
         lastAssembleTab: "assembler",
 
-        lattice: null,
         menuWrapper: null,
 
         allCellTypes: {octa:"Octahedron", cube:"Cube"},
@@ -56,9 +55,9 @@ AppState = Backbone.Model.extend({
         this.listenTo(this, "change:currentNav", this._updateCurrentTabForNav);
         this.listenTo(this, "change:currentTab", this._updateCellMode);
 
-        this.set("lattice", options.lattice);
+        this.lattice = options.lattice;//this doesn't need to be tracked for changes
 
-        this.set("menuWrapper", new MenuWrapper({model: this, lattice:this.get("lattice")}));
+        this.set("menuWrapper", new MenuWrapper({model: this, lattice:this.lattice}));
     },
 
 
-- 
GitLab