aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-10 17:21:28 -0800
committerValerio Virgillito2012-02-10 17:21:28 -0800
commita30d76ff641ce89686cf5fbd9f04ac9ab4e9c830 (patch)
tree41b7443e3a22c8215b30d992e06adc28c2f7919a /js/controllers/elements
parent666ae3e9119410cbf7fa974274d95336aaff091c (diff)
downloadninja-a30d76ff641ce89686cf5fbd9f04ac9ab4e9c830.tar.gz
initial color chip for the stage
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers/elements')
-rw-r--r--js/controllers/elements/stage-controller.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/controllers/elements/stage-controller.js b/js/controllers/elements/stage-controller.js
index b8170826..e9fc6bce 100644
--- a/js/controllers/elements/stage-controller.js
+++ b/js/controllers/elements/stage-controller.js
@@ -75,6 +75,8 @@ exports.StageController = Montage.create(ElementController, {
75 getProperty: { 75 getProperty: {
76 value: function(el, p) { 76 value: function(el, p) {
77 switch(p) { 77 switch(p) {
78 case "background" :
79 return el.elementModel.stageBackground.style.getProperty(p);
78 case "border": 80 case "border":
79 return el.elementModel.stageView.style.getProperty(p); 81 return el.elementModel.stageView.style.getProperty(p);
80 case "height": 82 case "height":
@@ -92,7 +94,8 @@ exports.StageController = Montage.create(ElementController, {
92 value: function(el, p, value) { 94 value: function(el, p, value) {
93 switch(p) { 95 switch(p) {
94 case "background": 96 case "background":
95 el.elementModel.body.style.setProperty(p, value); 97 console.log(value);
98 el.elementModel.stageBackground.style.setProperty(p, value);
96 break; 99 break;
97 case "overflow": 100 case "overflow":
98 el.elementModel.viewPort.style.setProperty(p, value); 101 el.elementModel.viewPort.style.setProperty(p, value);