diff options
author | Jonathan Duran | 2012-06-11 10:12:08 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-06-11 10:12:08 -0700 |
commit | 6a3b09433b8d5894a0f2a6c00748825727c2d991 (patch) | |
tree | 377cd68e0580172bc234059dbd4482c964d49bd4 /js/controllers/elements/element-controller.js | |
parent | 79cbc26904a7fbd7a846f48da6c026a91221ba93 (diff) | |
parent | bad5a44824ba35cbc7f4f4d245e32b90208f00c1 (diff) | |
download | ninja-6a3b09433b8d5894a0f2a6c00748825727c2d991.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-x | js/controllers/elements/element-controller.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js index 308e598b..280090d1 100755 --- a/js/controllers/elements/element-controller.js +++ b/js/controllers/elements/element-controller.js | |||
@@ -57,7 +57,7 @@ exports.ElementController = Montage.create(Component, { | |||
57 | // Remove the element from the DOM and clear the GLWord. | 57 | // Remove the element from the DOM and clear the GLWord. |
58 | removeElement: { | 58 | removeElement: { |
59 | value: function(el) { | 59 | value: function(el) { |
60 | if(el.elementModel && el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) { | 60 | if(el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) { |
61 | el.elementModel.shapeModel.GLWorld.clearTree(); | 61 | el.elementModel.shapeModel.GLWorld.clearTree(); |
62 | } | 62 | } |
63 | el.parentNode.removeChild(el); | 63 | el.parentNode.removeChild(el); |
@@ -297,7 +297,7 @@ exports.ElementController = Montage.create(Component, { | |||
297 | // Routines to get/set 3D properties | 297 | // Routines to get/set 3D properties |
298 | get3DProperty: { | 298 | get3DProperty: { |
299 | value: function(el, prop) { | 299 | value: function(el, prop) { |
300 | if(el.elementModel && el.elementModel.props3D) { | 300 | if(el.elementModel.props3D) { |
301 | return el.elementModel.props3D[prop]; | 301 | return el.elementModel.props3D[prop]; |
302 | } | 302 | } |
303 | } | 303 | } |
@@ -305,7 +305,7 @@ exports.ElementController = Montage.create(Component, { | |||
305 | 305 | ||
306 | getMatrix: { | 306 | getMatrix: { |
307 | value: function(el) { | 307 | value: function(el) { |
308 | if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.matrix3d) { | 308 | if(el.elementModel.props3D && el.elementModel.props3D.matrix3d) { |
309 | return el.elementModel.props3D.matrix3d.slice(0); | 309 | return el.elementModel.props3D.matrix3d.slice(0); |
310 | } else { | 310 | } else { |
311 | var mat; | 311 | var mat; |
@@ -325,7 +325,7 @@ exports.ElementController = Montage.create(Component, { | |||
325 | 325 | ||
326 | getPerspectiveDist: { | 326 | getPerspectiveDist: { |
327 | value: function(el) { | 327 | value: function(el) { |
328 | if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) { | 328 | if(el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) { |
329 | return el.elementModel.props3D.perspectiveDist; | 329 | return el.elementModel.props3D.perspectiveDist; |
330 | } else { | 330 | } else { |
331 | var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false); | 331 | var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false); |