Skip to content
Snippets Groups Projects
Commit e0009740 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

more lattice updates

parent 402bd154
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* Created by aghassaei on 1/26/15. * Created by aghassaei on 1/26/15.
*/ */
//todo scale input update renders view
LatticeMenuView = Backbone.View.extend({ LatticeMenuView = Backbone.View.extend({
...@@ -23,15 +25,6 @@ LatticeMenuView = Backbone.View.extend({ ...@@ -23,15 +25,6 @@ LatticeMenuView = Backbone.View.extend({
this.listenTo(globals.lattice, "change", this.render); this.listenTo(globals.lattice, "change", this.render);
}, },
_updateNumber: function(e, property){
e.preventDefault();
var newVal = parseFloat($(e.target).val());
if (isNaN(newVal)) return;
var object = globals.lattice.get(property);
object[$(e.target).data("type")] = newVal;
globals.lattice.trigger("change:"+property);
},
_clearCells: function(e){ _clearCells: function(e){
e.preventDefault(); e.preventDefault();
globals.lattice.clearCells(); globals.lattice.clearCells();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment