aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorhwc4872012-03-21 04:03:38 -0700
committerhwc4872012-03-21 04:03:38 -0700
commit6b6fa1ec7d39057ce937f090b2965c09f1930070 (patch)
tree128bce053ef053eada8c3a951cac805affad660e /js/controllers
parent6d0b1c5d8fe71244f93c2f994e1097b454df2766 (diff)
downloadninja-6b6fa1ec7d39057ce937f090b2965c09f1930070.tar.gz
Clear RDGE when an element is deleted and before registering the context.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/selection-controller.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/controllers/selection-controller.js b/js/controllers/selection-controller.js
index 154fb7f8..f29b39e2 100755
--- a/js/controllers/selection-controller.js
+++ b/js/controllers/selection-controller.js
@@ -111,6 +111,15 @@ exports.SelectionController = Montage.create(Component, {
111 if(!this._isDocument) { 111 if(!this._isDocument) {
112 if(this.findSelectedElement(event.detail) !== -1) { 112 if(this.findSelectedElement(event.detail) !== -1) {
113 this.executeSelectElement(); 113 this.executeSelectElement();
114 var element = event.detail;
115 if (element) {
116 if (element.elementModel) {
117 if (element.elementModel.shapeModel) {
118 if (element.elementModel.shapeModel.GLWorld)
119 element.elementModel.shapeModel.GLWorld.clearTree();
120 }
121 }
122 }
114 } 123 }
115 } 124 }
116 } 125 }