From e000974028af502661d04e2a9655a60dd8bd4ec4 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Mon, 25 May 2015 13:07:56 -0700 Subject: [PATCH] more lattice updates --- js/menus/LatticeMenuView.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/js/menus/LatticeMenuView.js b/js/menus/LatticeMenuView.js index ecb7c1bd..2a154bbf 100644 --- a/js/menus/LatticeMenuView.js +++ b/js/menus/LatticeMenuView.js @@ -2,6 +2,8 @@ * Created by aghassaei on 1/26/15. */ +//todo scale input update renders view + LatticeMenuView = Backbone.View.extend({ @@ -23,15 +25,6 @@ LatticeMenuView = Backbone.View.extend({ 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){ e.preventDefault(); globals.lattice.clearCells(); -- GitLab