From f404e2cbd9cf4086bfb8265a88ea4c1f0f0a289b Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 1 Mar 2012 16:54:27 -0800 Subject: revert removing the webkit transform from elements. Signed-off-by: Valerio Virgillito --- js/mediators/element-mediator.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'js/mediators') 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, { _addElement: { value: function(el, rules, noEvent) { ElementController.addElement(el, rules); - // Commenting this out because we should not add 3D properties by default when creating new elements. -// var p3d = this.get3DProperties(el); -// if(p3d) { -// el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); -// } + var p3d = this.get3DProperties(el); + if(p3d) { + el.elementModel.controller["set3DProperties"](el, [p3d], 0, true); + } if(!noEvent) { this.application.ninja.documentController.activeDocument.needsSave = true; NJevent("elementAdded", el); -- cgit v1.2.3