diff options
author | Nivesh Rajbhandari | 2012-05-02 16:50:38 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-02 16:50:38 -0700 |
commit | 7c77aa914eb96c2b5b797e37c16aa786c05f38e8 (patch) | |
tree | bc9d4d9f721552ca0b55299d217867c345f9db8b /js/tools/LineTool.js | |
parent | a809c6b3ba6f024922dd3f10bbc4ab456de2407e (diff) | |
download | ninja-7c77aa914eb96c2b5b797e37c16aa786c05f38e8.tar.gz |
Converting geom-obj to object literal notation.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/LineTool.js')
-rwxr-xr-x | js/tools/LineTool.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 9c4ba892..a32fbdc8 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -233,7 +233,7 @@ 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(); | 236 | var line = Object.create(Line, {}); |
237 | line.init(world, xOffset, yOffset, w, h, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj); | 237 | line.init(world, xOffset, yOffset, w, h, slope, strokeSize, strokeColor, strokeMaterial, strokeStyle, xAdj, yAdj); |
238 | 238 | ||
239 | world.addObject(line); | 239 | world.addObject(line); |