diff options
author | Valerio Virgillito | 2012-02-16 21:49:35 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-16 21:49:35 -0800 |
commit | 9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f (patch) | |
tree | 19aa9599e0cc37a126df9d61f7e6f6d4baaae75d /js/tools/LineTool.js | |
parent | 09f3c65dcbb4d21b75b7fe591c52cb9b9750bf3f (diff) | |
parent | e0bead5a36ae987c558607b77745c4018caf59f8 (diff) | |
download | ninja-9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f.tar.gz |
Merge pull request #50 from mencio/canvas-data
Adding canvas data attributes
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 99c374a7..233316a5 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -82,7 +82,7 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
82 | h += ~~(yAdj*2); | 82 | h += ~~(yAdj*2); |
83 | } | 83 | } |
84 | 84 | ||
85 | canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", null, true); | 85 | canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); |
86 | var elementModel = TagTool.makeElement(w, h, drawData.planeMat, drawData.midPt, canvas); | 86 | var elementModel = TagTool.makeElement(w, h, drawData.planeMat, drawData.midPt, canvas); |
87 | 87 | ||
88 | ElementMediator.addElement(canvas, elementModel.data, true); | 88 | ElementMediator.addElement(canvas, elementModel.data, true); |