aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-03 15:09:54 -0800
committerNivesh Rajbhandari2012-02-03 15:09:54 -0800
commitd7ad2659d7ef8d0fffbb1cba8218061ebd516dd0 (patch)
treeefd2d3b7077fedfbf6234a92a223fee7a9a89244 /js/helper-classes
parent130c1d3bfeedfc50ab3481c7d8c2e83af224feac (diff)
downloadninja-d7ad2659d7ef8d0fffbb1cba8218061ebd516dd0.tar.gz
Handle delete of multiple objects. Also, have deletion go through the mediator so elementDeleted event is fired for SnapManager, DrawUtils, etc. to clean up after deleted element(s).
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes')
-rw-r--r--js/helper-classes/3D/draw-utils.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js
index 08a27618..c07391db 100644
--- a/js/helper-classes/3D/draw-utils.js
+++ b/js/helper-classes/3D/draw-utils.js
@@ -110,6 +110,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
110 110
111 this.eventManager.addEventListener("elementAdded", this, false); 111 this.eventManager.addEventListener("elementAdded", this, false);
112 this.eventManager.addEventListener("elementDeleted", this, false); 112 this.eventManager.addEventListener("elementDeleted", this, false);
113 this.eventManager.addEventListener("deleteSelection", this, false);
113 this.eventManager.addEventListener("elementChange", this, false); 114 this.eventManager.addEventListener("elementChange", this, false);
114 } 115 }
115 }, 116 },
@@ -127,6 +128,12 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, {
127 } 128 }
128 }, 129 },
129 130
131 handleDeleteSelection: {
132 value: function(event) {
133 this.drawWorkingPlane();
134 }
135 },
136
130 _shouldUpdatePlanes: { 137 _shouldUpdatePlanes: {
131 value: function(props) { 138 value: function(props) {
132 if(!props) 139 if(!props)