diff options
author | Nivesh Rajbhandari | 2012-01-27 15:05:27 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-01-29 13:27:53 -0800 |
commit | 0dca2755c07f9928e9d9b0b7feace48edf969900 (patch) | |
tree | 8a78e8d74d64e00f0631b50e1245466bccb3f783 /js/controllers | |
parent | 2a78759126569045c6bc813154a914c2be9be432 (diff) | |
download | ninja-0dca2755c07f9928e9d9b0b7feace48edf969900.tar.gz |
Updated canvas controller to override setProperties so we don't set styles when updating width and height.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers')
-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..21de9879 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(el, props, index) { | ||
40 | for(var p in props) { | ||
41 | el.elementModel.controller.setProperty(el, p, props[p][index]); | ||
42 | } | ||
43 | } | ||
36 | } | 44 | } |
37 | }); \ No newline at end of file | 45 | }); \ No newline at end of file |