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/controllers/elements | |
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/controllers/elements')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index 640119c4..15a18a51 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -59,6 +59,7 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
59 | break; | 59 | break; |
60 | case "useWebGl": | 60 | case "useWebGl": |
61 | var canvas = njModule.NJUtils.makeNJElement("canvas", "Canvas", "shape", el.className, true); | 61 | var canvas = njModule.NJUtils.makeNJElement("canvas", "Canvas", "shape", el.className, true); |
62 | canvas.setAttribute("data-RDGE-id", njModule.NJUtils.generateRandom()); | ||
62 | canvas.width = el.width; | 63 | canvas.width = el.width; |
63 | canvas.height = el.height; | 64 | canvas.height = el.height; |
64 | this.application.ninja.elementMediator.replaceElement(el, canvas); | 65 | this.application.ninja.elementMediator.replaceElement(el, canvas); |