aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-04-17 11:53:27 -0700
committerNivesh Rajbhandari2012-04-17 11:53:27 -0700
commit078208d02205f54808db888bbdbe5f69b3abba4b (patch)
tree8f54b42024a7d0ab2c6a0e37884b9af3c2d94451 /js
parent6d3af6cb9dc8223102854ad95a5c4c501fc62c8b (diff)
downloadninja-078208d02205f54808db888bbdbe5f69b3abba4b.tar.gz
Adding back setProperties for canvas because width and height values need to be set as attributes instead of styles.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/controllers/elements/canvas-controller.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/controllers/elements/canvas-controller.js b/js/controllers/elements/canvas-controller.js
index 7af7e824..b8894c18 100755
--- a/js/controllers/elements/canvas-controller.js
+++ b/js/controllers/elements/canvas-controller.js
@@ -33,5 +33,13 @@ exports.CanvasController = Montage.create(ElementController, {
33 ElementController.setProperty(el, p, value); 33 ElementController.setProperty(el, p, value);
34 } 34 }
35 } 35 }
36 },
37
38 setProperties: {
39 value: function(element, properties) {
40 for(var property in properties) {
41 this.setProperty(element, property, properties[property]);
42 }
43 }
36 } 44 }
37}); \ No newline at end of file 45}); \ No newline at end of file