aboutsummaryrefslogtreecommitdiff
path: root/js/tools/ShapeTool.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-24 00:24:20 -0700
committerValerio Virgillito2012-07-24 00:24:20 -0700
commit55a69aeb3c66b533d5a2d27d7548471c2c8b5dfc (patch)
tree365b393741e1fd34a3a4da68285cb1e9faa45e09 /js/tools/ShapeTool.js
parente711a4ffaa87dc368908020d57053cf82eba6f39 (diff)
downloadninja-55a69aeb3c66b533d5a2d27d7548471c2c8b5dfc.tar.gz
jshint cleanup on the tools directory
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-xjs/tools/ShapeTool.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js
index ecc0dca3..e1ca31e6 100755
--- a/js/tools/ShapeTool.js
+++ b/js/tools/ShapeTool.js
@@ -167,13 +167,13 @@ exports.ShapeTool = Montage.create(DrawingTool, {
167 }, 167 },
168 168
169 getGLWorld: { 169 getGLWorld: {
170 value: function (canvas, use3D) 170 value: function (canvas, use3D) {
171 { 171 var world;
172 var world = this.application.ninja.elementMediator.getShapeProperty(canvas, "GLWorld"); 172
173 if(!world) 173 world = this.application.ninja.elementMediator.getShapeProperty(canvas, "GLWorld");
174 { 174 if(!world) {
175 // create all the GL stuff 175 // create all the GL stuff
176 var world = new World(canvas, use3D); 176 world = new World(canvas, use3D);
177 this.application.ninja.elementMediator.setShapeProperty(canvas, "GLWorld", world); 177 this.application.ninja.elementMediator.setShapeProperty(canvas, "GLWorld", world);
178 } 178 }
179 179