Commit 3bc775d1 authored by Amanda Ghassaei's avatar Amanda Ghassaei

url checks

parent 65b78eb0
......@@ -29,6 +29,8 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
__initialize: function(){
this._checkURL();
this.listenTo(this, "change:partType", this._updatePartType);
this.listenTo(this, "change:cellType change:connectionType change:latticeType", function(){
this._updateLatticeConfig();//pass no params
......@@ -42,6 +44,11 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
this._updateLatticeConfig();
},
_checkURL: function(){
var path = window.location.path;
// console.log(path);
},
......
......@@ -88,6 +88,21 @@ define(['three'], function(THREE){
}
},
urls: {
dnabricks: {
cellType: "cube",
connectionType: "gik",
latticeType: "willGik",
partType: null
},
electronics: {
cellType: "cube",
connectionType: "gik",
latticeType: "dnaBricks",
partType: null
}
},
allLattices:{
octa: {
name: "Octahedron",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment