diff options
author | Nivesh Rajbhandari | 2012-04-17 11:53:27 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-17 11:53:27 -0700 |
commit | 078208d02205f54808db888bbdbe5f69b3abba4b (patch) | |
tree | 8f54b42024a7d0ab2c6a0e37884b9af3c2d94451 | |
parent | 6d3af6cb9dc8223102854ad95a5c4c501fc62c8b (diff) | |
download | ninja-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>
-rwxr-xr-x | js/controllers/elements/canvas-controller.js | 8 |
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 |