aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-03 14:06:26 -0800
committerNivesh Rajbhandari2012-02-03 14:06:26 -0800
commit854a6d1be334782c8e232601e6d562a11296e55a (patch)
tree008f69b921f3a1de6df5871f20def6098452f2a6 /js/mediators
parent91de8f585e93d1a959c7fe56775df371ce6f50d6 (diff)
downloadninja-854a6d1be334782c8e232601e6d562a11296e55a.tar.gz
Update grid and planes when elementChange event signifies the "matrix", "left", "top", "width" or "height" properties have changed.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/element-mediator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 1d0aef44..b2bc5355 100644
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -425,7 +425,7 @@ exports.ElementMediator = Montage.create(NJComponent, {
425 el.elementModel.controller["set3DProperties"](el, props, i, update3DModel); 425 el.elementModel.controller["set3DProperties"](el, props, i, update3DModel);
426 } 426 }
427 427
428 NJevent("element" + eventType, {type : "set3DProperties", source: source, data: {"els": els, "prop": props, "value": props}, redraw: null}); 428 NJevent("element" + eventType, {type : "set3DProperties", source: source, data: {"els": els, "prop": "matrix", "value": props}, redraw: null});
429 } 429 }
430 }, 430 },
431 431
@@ -660,11 +660,11 @@ exports.ElementMediator = Montage.create(NJComponent, {
660 660
661 if(isChanging) 661 if(isChanging)
662 { 662 {
663 NJevent("elementChanging", {type : "setMatrix", source: null, data: {"el": el, "prop": "matrix", "value": mat}, redraw: null}); 663 NJevent("elementChanging", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null});
664 } 664 }
665 else 665 else
666 { 666 {
667 NJevent("elementChange", {type : "setMatrix", source: null, data: {"el": el, "prop": "matrix", "value": mat}, redraw: null}); 667 NJevent("elementChange", {type : "setMatrix", source: null, data: {"els": [el], "prop": "matrix", "value": mat}, redraw: null});
668 } 668 }
669 } 669 }
670 }, 670 },