Commit 8664e523 authored by amandaghassaei's avatar amandaghassaei

reset baseplane on clear cells

parent 37ef6a1d
......@@ -114,6 +114,10 @@ define(['underscore', 'backbone', 'appState', 'lattice', 'threeModel', 'three'],
three.render();
},
reset: function(){
this.set(this.defaults);
},
destroy: function(){
this.stopListening();
this.set("zIndex", null, {silent:true});
......
......@@ -3,8 +3,8 @@
*/
define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'text!menus/templates/MenuWrapperView.html'],
function($, _, plist, Backbone, lattice, appState, template){
define(['jquery', 'underscore', 'plist', 'backbone', 'lattice', 'appState', 'text!menus/templates/MenuWrapperView.html', 'globals'],
function($, _, plist, Backbone, lattice, appState, template, globals){
var MenuWrapperView = Backbone.View.extend({
......@@ -233,6 +233,7 @@ 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