aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-01 17:05:07 -0800
committerNivesh Rajbhandari2012-02-01 17:05:07 -0800
commit830b011d94d728882286d72e129f7405134957c7 (patch)
tree72a4fb831d74c5d3f28ddca731431c59fb516bd8 /js/mediators
parentaffafafc4db16e5f918c74dfc919025d4c563cc6 (diff)
downloadninja-830b011d94d728882286d72e129f7405134957c7.tar.gz
Updated color code in the PI to go through element mediator.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/element-mediator.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 4c34e668..7c5c161c 100644
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -431,7 +431,7 @@ exports.ElementMediator = Montage.create(NJComponent, {
431 getColor: { 431 getColor: {
432 value: function(el, isFill) { 432 value: function(el, isFill) {
433 if(!el.elementModel) { 433 if(!el.elementModel) {
434 NJUtils.makeElementModel(el, "Div", "block"); 434 NJUtils.makeElementModel2(el);
435 } 435 }
436 return el.elementModel.controller["getColor"](el, isFill); 436 return el.elementModel.controller["getColor"](el, isFill);
437 } 437 }
@@ -589,6 +589,15 @@ exports.ElementMediator = Montage.create(NJComponent, {
589 } 589 }
590 }, 590 },
591 591
592 getColor2: {
593 value: function(el, prop, mutator) {
594 if(!el.elementModel) {
595 NJUtils.makeElementModel2(el);
596 }
597
598 return this.getColor(el, (prop === "background"));
599 }
600 },
592 601
593 //-------------------------------------------------------------------------------------------------------- 602 //--------------------------------------------------------------------------------------------------------
594 // Routines to get/set 3D properties 603 // Routines to get/set 3D properties