aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorhwc4872012-01-30 16:15:12 -0800
committerhwc4872012-01-30 16:15:12 -0800
commit8e43a46e3d79323fe06dc7771bc611a2c3c85c5c (patch)
tree37773f0a4d3212ff633690b270a4756c02d2b2bc /js/controllers
parentc41d2c2b749b67921f243fb7594ce0cdb1ccce36 (diff)
downloadninja-8e43a46e3d79323fe06dc7771bc611a2c3c85c5c.tar.gz
Renderer startup handling of non-animated materials.
Changed zoom from the document bar to keep the location center of the viewable portion of the document fixed.
Diffstat (limited to 'js/controllers')
-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..b5df3911 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