aboutsummaryrefslogtreecommitdiff
path: root/js/tools/ShapeTool.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-16 21:49:35 -0800
committerValerio Virgillito2012-02-16 21:49:35 -0800
commit9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f (patch)
tree19aa9599e0cc37a126df9d61f7e6f6d4baaae75d /js/tools/ShapeTool.js
parent09f3c65dcbb4d21b75b7fe591c52cb9b9750bf3f (diff)
parente0bead5a36ae987c558607b77745c4018caf59f8 (diff)
downloadninja-9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f.tar.gz
Merge pull request #50 from mencio/canvas-data
Adding canvas data attributes
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-xjs/tools/ShapeTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js
index 4ccb7a8d..29e9b99f 100755
--- a/js/tools/ShapeTool.js
+++ b/js/tools/ShapeTool.js
@@ -66,7 +66,7 @@ exports.ShapeTool = Montage.create(DrawingTool, {
66 var canvas; 66 var canvas;
67 if(!this._useExistingCanvas()) 67 if(!this._useExistingCanvas())
68 { 68 {
69 canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", null, true); 69 canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true);
70 var elementModel = TagTool.makeElement(~~drawData.width, ~~drawData.height, 70 var elementModel = TagTool.makeElement(~~drawData.width, ~~drawData.height,
71 drawData.planeMat, drawData.midPt, canvas); 71 drawData.planeMat, drawData.midPt, canvas);
72 72