diff options
author | Pushkar Joshi | 2012-06-11 14:07:13 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-06-11 14:07:13 -0700 |
commit | 71bc93ad0d53a77d70c688b2b3aacf694dd1de91 (patch) | |
tree | a432a4652bf7c96aea72a22bf27946eeee8fc4a5 /js/controllers/elements/element-controller.js | |
parent | 76db3eb0aa4ffe9e75812db570c793e9f852f853 (diff) | |
parent | 756cbfad2b98b300af8db3793aa21718b88dd950 (diff) | |
download | ninja-71bc93ad0d53a77d70c688b2b3aacf694dd1de91.tar.gz |
Merge branch 'master' into brushtool
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 941e05ba..4a02e9a3 100755 --- a/js/controllers/elements/element-controller.js +++ b/js/controllers/elements/element-controller.js | |||
@@ -37,7 +37,7 @@ exports.ElementController = Montage.create(Component, { | |||
37 | // Remove the element from the DOM and clear the GLWord. | 37 | // Remove the element from the DOM and clear the GLWord. |
38 | removeElement: { | 38 | removeElement: { |
39 | value: function(el) { | 39 | value: function(el) { |
40 | if(el.elementModel && el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) { | 40 | if(el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) { |
41 | el.elementModel.shapeModel.GLWorld.clearTree(); | 41 | el.elementModel.shapeModel.GLWorld.clearTree(); |
42 | } | 42 | } |
43 | el.parentNode.removeChild(el); | 43 | el.parentNode.removeChild(el); |
@@ -277,7 +277,7 @@ exports.ElementController = Montage.create(Component, { | |||
277 | // Routines to get/set 3D properties | 277 | // Routines to get/set 3D properties |
278 | get3DProperty: { | 278 | get3DProperty: { |
279 | value: function(el, prop) { | 279 | value: function(el, prop) { |
280 | if(el.elementModel && el.elementModel.props3D) { | 280 | if(el.elementModel.props3D) { |
281 | return el.elementModel.props3D[prop]; | 281 | return el.elementModel.props3D[prop]; |
282 | } | 282 | } |
283 | } | 283 | } |
@@ -285,7 +285,7 @@ exports.ElementController = Montage.create(Component, { | |||
285 | 285 | ||
286 | getMatrix: { | 286 | getMatrix: { |
287 | value: function(el) { | 287 | value: function(el) { |
288 | if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.matrix3d) { | 288 | if(el.elementModel.props3D && el.elementModel.props3D.matrix3d) { |
289 | return el.elementModel.props3D.matrix3d.slice(0); | 289 | return el.elementModel.props3D.matrix3d.slice(0); |
290 | } else { | 290 | } else { |
291 | var mat; | 291 | var mat; |
@@ -305,7 +305,7 @@ exports.ElementController = Montage.create(Component, { | |||
305 | 305 | ||
306 | getPerspectiveDist: { | 306 | getPerspectiveDist: { |
307 | value: function(el) { | 307 | value: function(el) { |
308 | if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) { | 308 | if(el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) { |
309 | return el.elementModel.props3D.perspectiveDist; | 309 | return el.elementModel.props3D.perspectiveDist; |
310 | } else { | 310 | } else { |
311 | var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false); | 311 | var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false); |