aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-01 16:54:27 -0800
committerValerio Virgillito2012-03-01 16:54:27 -0800
commitfb02c657db5b763d471a4b09fd5929198da60c4f (patch)
treec8812c93f8bacd72ee84a6d0b30d3625d89feb65 /js/mediators
parent0a500496236bedbdd9fbbcb3d841a195b3e5fc0f (diff)
downloadninja-fb02c657db5b763d471a4b09fd5929198da60c4f.tar.gz
revert removing the webkit transform from elements.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/mediators')
-rwxr-xr-xjs/mediators/element-mediator.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/mediators/element-mediator.js b/js/mediators/element-mediator.js
index 60a75992..127f73e1 100755
--- a/js/mediators/element-mediator.js
+++ b/js/mediators/element-mediator.js
@@ -90,11 +90,10 @@ exports.ElementMediator = Montage.create(NJComponent, {
90 _addElement: { 90 _addElement: {
91 value: function(el, rules, noEvent) { 91 value: function(el, rules, noEvent) {
92 ElementController.addElement(el, rules); 92 ElementController.addElement(el, rules);
93 // Commenting this out because we should not add 3D properties by default when creating new elements. 93 var p3d = this.get3DProperties(el);
94// var p3d = this.get3DProperties(el); 94 if(p3d) {
95// if(p3d) { 95 el.elementModel.controller["set3DProperties"](el, [p3d], 0, true);
96// el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); 96 }
97// }
98 if(!noEvent) { 97 if(!noEvent) {
99 this.application.ninja.documentController.activeDocument.needsSave = true; 98 this.application.ninja.documentController.activeDocument.needsSave = true;
100 NJevent("elementAdded", el); 99 NJevent("elementAdded", el);