aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-22 15:47:56 -0700
committerValerio Virgillito2012-03-22 15:47:56 -0700
commitfdeed8051c3af538d28ca3bc599121cea483c22c (patch)
treecd5db2db7a04fb1e3035132a840076480706e0e3 /js/controllers
parent5308a9404ef131ba6457eec840b017a3e436b9da (diff)
downloadninja-fdeed8051c3af538d28ca3bc599121cea483c22c.tar.gz
Squashed commit of the following GL integration
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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 9b0e638a..53cca029 100755
--- a/js/controllers/selection-controller.js
+++ b/js/controllers/selection-controller.js
@@ -112,6 +112,15 @@ exports.SelectionController = Montage.create(Component, {
112 if(!this._isDocument) { 112 if(!this._isDocument) {
113 if(this.findSelectedElement(event.detail) !== -1) { 113 if(this.findSelectedElement(event.detail) !== -1) {
114 this.executeSelectElement(); 114 this.executeSelectElement();
115 var element = event.detail;
116 if (element) {
117 if (element.elementModel) {
118 if (element.elementModel.shapeModel) {
119 if (element.elementModel.shapeModel.GLWorld)
120 element.elementModel.shapeModel.GLWorld.clearTree();
121 }
122 }
123 }
115 } 124 }
116 } 125 }
117 } 126 }