From 6b95a62d92e9ff0c4b6645c139221d1df9b434f1 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Tue, 10 Mar 2015 22:47:54 -0400 Subject: [PATCH] default connection types --- js/menus/LatticeMenuView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/menus/LatticeMenuView.js b/js/menus/LatticeMenuView.js index ad42225e..8d123555 100644 --- a/js/menus/LatticeMenuView.js +++ b/js/menus/LatticeMenuView.js @@ -81,7 +81,7 @@ LatticeMenuView = Backbone.View.extend({ _setAppStateToDefaultsSilently: function(newCellType, newConnectionType){ if (!newConnectionType){ - newConnectionType = "face"; + newConnectionType = _.keys(dmaGlobals.appState.get("allConnectionTypes")[newCellType])[0]; this.lattice.set("connectionType", newConnectionType, {silent:true}); } this.model.set("connectionType", newConnectionType, {silent:true}); -- GitLab