diff options
Diffstat (limited to 'js/controllers/elements/shapes-controller.js')
-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 f69e6fc9..5ced8820 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -39,6 +39,7 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
39 | break; | 39 | break; |
40 | case "useWebGl": | 40 | case "useWebGl": |
41 | var canvas = njModule.NJUtils.makeNJElement("canvas", "Canvas", "shape", el.className, true); | 41 | var canvas = njModule.NJUtils.makeNJElement("canvas", "Canvas", "shape", el.className, true); |
42 | canvas.setAttribute("data-RDGE-id", njModule.NJUtils.generateRandom()); | ||
42 | canvas.width = el.width; | 43 | canvas.width = el.width; |
43 | canvas.height = el.height; | 44 | canvas.height = el.height; |
44 | this.application.ninja.elementMediator.replaceElement(el, canvas); | 45 | this.application.ninja.elementMediator.replaceElement(el, canvas); |