From 078208d02205f54808db888bbdbe5f69b3abba4b Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Tue, 17 Apr 2012 11:53:27 -0700 Subject: Adding back setProperties for canvas because width and height values need to be set as attributes instead of styles. Signed-off-by: Nivesh Rajbhandari --- js/controllers/elements/canvas-controller.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/controllers/elements/canvas-controller.js') 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, { ElementController.setProperty(el, p, value); } } + }, + + setProperties: { + value: function(element, properties) { + for(var property in properties) { + this.setProperty(element, property, properties[property]); + } + } } }); \ No newline at end of file -- cgit v1.2.3