aboutsummaryrefslogtreecommitdiff
path: root/js/lib/NJUtils.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-21 17:13:56 -0700
committerNivesh Rajbhandari2012-03-21 17:13:56 -0700
commit3987b73569e58843f2a91c0c6c4e4132f51ac247 (patch)
treec5e121861209f4067bf5c363e3a40e5bd515d0b4 /js/lib/NJUtils.js
parent52fac825174d16e3ff6875fc497d3f3cfaf4812c (diff)
downloadninja-3987b73569e58843f2a91c0c6c4e4132f51ac247.tar.gz
Do not set webkit-transform styles on elements unless 3d is used on them.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/NJUtils.js')
-rwxr-xr-xjs/lib/NJUtils.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js
index f611052b..cb877591 100755
--- a/js/lib/NJUtils.js
+++ b/js/lib/NJUtils.js
@@ -94,7 +94,10 @@ exports.NJUtils = Object.create(Object.prototype, {
94 ///// TODO: find a different place for this function 94 ///// TODO: find a different place for this function
95 makeElementModel: { 95 makeElementModel: {
96 value: function(el, selection, controller, isShape) { 96 value: function(el, selection, controller, isShape) {
97 var p3d = Montage.create(Properties3D).init(el, (selection === "Stage")); 97 var p3d = Montage.create(Properties3D);
98 if(selection === "Stage") {
99 p3d.init(el, true);
100 }
98 var shapeProps = null; 101 var shapeProps = null;
99 if(isShape) { 102 if(isShape) {
100 shapeProps = Montage.create(ShapeModel); 103 shapeProps = Montage.create(ShapeModel);