Commit 1fe66983 authored by amandaghassaei's avatar amandaghassaei

clear cells small fix

parent fafc7e7d
......@@ -340,6 +340,7 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
this.set("cellsMin", null, {silent:silent});
this.set("numCells", 0, {silent:silent});
if (this.__clearCells) this.__clearCells(silent);
if (globals.get("baseplane")) globals.get("baseplane").reset();
three.render();
},
......
......@@ -3,8 +3,8 @@
*/
define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'text!menus/templates/MenuWrapperView.html', 'globals'],
function($, _, plist, Backbone, lattice, appState, template, globals){
define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'text!menus/templates/MenuWrapperView.html'],
function($, _, plist, Backbone, lattice, appState, template){
var MenuWrapperView = Backbone.View.extend({
......@@ -233,7 +233,6 @@ define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'tex
_clearCells: function(e){
e.preventDefault();
lattice.getUItarget().clearCells();
globals.get("baseplane").reset();
},
_getPropertyOwner: function($target){
......
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