aboutsummaryrefslogtreecommitdiff
path: root/js/tools/ShapeTool.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-24 00:32:18 -0700
committerValerio Virgillito2012-07-24 00:32:18 -0700
commit2222e73faee8326e4d5be276bc8486316d83f2a6 (patch)
treef9aa990bd281da9543fd42231cfb76a2e1040243 /js/tools/ShapeTool.js
parent3f7a5c3482ddb4e7a1b222df314dbc6baf59bb44 (diff)
parent55a69aeb3c66b533d5a2d27d7548471c2c8b5dfc (diff)
downloadninja-2222e73faee8326e4d5be276bc8486316d83f2a6.tar.gz
Merge branch 'jshint' of https://github.com/mencio/ninja into v0.7.1
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