diff options
author | Nivesh Rajbhandari | 2012-03-21 17:13:56 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-21 17:13:56 -0700 |
commit | 3987b73569e58843f2a91c0c6c4e4132f51ac247 (patch) | |
tree | c5e121861209f4067bf5c363e3a40e5bd515d0b4 /js/lib | |
parent | 52fac825174d16e3ff6875fc497d3f3cfaf4812c (diff) | |
download | ninja-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')
-rwxr-xr-x | js/lib/NJUtils.js | 5 |
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); |