diff options
author | Nivesh Rajbhandari | 2012-01-27 15:05:27 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-01-27 15:05:27 -0800 |
commit | 2341e01c6422c178254ccb320a0499d0bc2381d5 (patch) | |
tree | bd58e9958d84dc3abef216d83f2e622ddb045b28 | |
parent | 35cd86dab6e77f358a1a6cf75825f6bc3f6032fe (diff) | |
download | ninja-2341e01c6422c178254ccb320a0499d0bc2381d5.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>
-rw-r--r-- | 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 100644 --- 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 |