diff options
author | Valerio Virgillito | 2012-02-02 15:12:03 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-02 15:12:03 -0800 |
commit | 4c6ea2383650ae328ed1e69c5f9c7c6878c6f810 (patch) | |
tree | 1f4194554032bee6a87aadf15cb647398a98b437 /js/mediators/element-mediator.js | |
parent | 7303d3a7c3913658bf33be5f99db85a30889cfd9 (diff) | |
parent | d41dee0c552a30724a146965ae4272a268777fc5 (diff) | |
download | ninja-4c6ea2383650ae328ed1e69c5f9c7c6878c6f810.tar.gz |
Merge pull request #12 from mqg734/ToolFixes
Merged pan and zoom tool and 3d stage orientation fixes. Also updated PI to support shapes properties.
Diffstat (limited to 'js/mediators/element-mediator.js')
-rw-r--r-- | js/mediators/element-mediator.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js index 91b09475..a6f31703 100644 --- a/js/mediators/element-mediator.js +++ b/js/mediators/element-mediator.js | |||
@@ -92,6 +92,11 @@ exports.ElementMediator = Montage.create(NJComponent, { | |||
92 | _addElement: { | 92 | _addElement: { |
93 | value: function(el, rules, noEvent) { | 93 | value: function(el, rules, noEvent) { |
94 | ElementController.addElement(el, rules); | 94 | ElementController.addElement(el, rules); |
95 | var p3d = this.get3DProperties(el); | ||
96 | if(p3d) | ||
97 | { | ||
98 | el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); | ||
99 | } | ||
95 | if(!noEvent) NJevent("elementAdded", el); | 100 | if(!noEvent) NJevent("elementAdded", el); |
96 | } | 101 | } |
97 | }, | 102 | }, |