diff options
author | Nivesh Rajbhandari | 2012-05-02 15:45:43 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-02 15:45:43 -0700 |
commit | a809c6b3ba6f024922dd3f10bbc4ab456de2407e (patch) | |
tree | 9bd36da4cc62ee3478db066bb91e34a97279457d /js/tools | |
parent | 691beb1c39fc0baa683f1fc56cbc519fe58f306d (diff) | |
download | ninja-a809c6b3ba6f024922dd3f10bbc4ab456de2407e.tar.gz |
Converting line, circle and rectangle shapes to object literal notation.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/LineTool.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 3e9167fd..9c4ba892 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -233,7 +233,8 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
233 | var xOffset = ((left - canvas.offsetLeft + w/2) - canvas.width/2); | 233 | var xOffset = ((left - canvas.offsetLeft + w/2) - canvas.width/2); |
234 | var yOffset = (canvas.height/2 - (top - canvas.offsetTop + h/2)); | 234 | var yOffset = (canvas.height/2 - (top - canvas.offsetTop + h/2)); |
235 | 235 | ||
236 | var line = new Line(world, xOffset, yOffset, w, h, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj); | 236 | var line = new Line(); |
237 | line.init(world, xOffset, yOffset, w, h, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj); | ||
237 | 238 | ||
238 | world.addObject(line); | 239 | world.addObject(line); |
239 | world.render(); | 240 | world.render(); |