aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/canvas-controller.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-01-27 15:12:08 -0800
committerValerio Virgillito2012-01-27 15:12:08 -0800
commit302e3eb01037ff550bc93547cb8d5d0a0780b312 (patch)
treebd58e9958d84dc3abef216d83f2e622ddb045b28 /js/controllers/elements/canvas-controller.js
parent35cd86dab6e77f358a1a6cf75825f6bc3f6032fe (diff)
parent2341e01c6422c178254ccb320a0499d0bc2381d5 (diff)
downloadninja-302e3eb01037ff550bc93547cb8d5d0a0780b312.tar.gz
Merge pull request #1 from mqg734/ToolFixes
Fixed canvas width/height bug.
Diffstat (limited to 'js/controllers/elements/canvas-controller.js')
-rw-r--r--js/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..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