aboutsummaryrefslogtreecommitdiff
path: root/js/tools/PenTool.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/PenTool.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/PenTool.js')
-rwxr-xr-xjs/tools/PenTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 9a69b53d..7749d525 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -570,7 +570,7 @@ exports.PenTool = Montage.create(ShapeTool, {
570 570
571 if (!canvas) { 571 if (!canvas) {
572 var newCanvas = null; 572 var newCanvas = null;
573 newCanvas = NJUtils.makeNJElement("canvas", "Subpath", "shape", null, true); 573 newCanvas = NJUtils.makeNJElement("canvas", "Subpath", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true);
574 var elementModel = TagTool.makeElement(parseInt(w), parseInt(h), planeMat, midPt, newCanvas); 574 var elementModel = TagTool.makeElement(parseInt(w), parseInt(h), planeMat, midPt, newCanvas);
575 ElementMediator.addElement(newCanvas, elementModel.data, true); 575 ElementMediator.addElement(newCanvas, elementModel.data, true);
576 576