aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/element-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-xjs/controllers/elements/element-controller.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 01e132d7..0223a6b5 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -36,7 +36,7 @@ exports.ElementController = Montage.create(Component, {
36 // Remove the element from the DOM and clear the GLWord. 36 // Remove the element from the DOM and clear the GLWord.
37 removeElement: { 37 removeElement: {
38 value: function(el) { 38 value: function(el) {
39 if(el.elementModel && el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) { 39 if(el.elementModel.shapeModel && el.elementModel.shapeModel.GLWorld) {
40 el.elementModel.shapeModel.GLWorld.clearTree(); 40 el.elementModel.shapeModel.GLWorld.clearTree();
41 } 41 }
42 el.parentNode.removeChild(el); 42 el.parentNode.removeChild(el);
@@ -229,7 +229,7 @@ exports.ElementController = Montage.create(Component, {
229 // Routines to get/set 3D properties 229 // Routines to get/set 3D properties
230 get3DProperty: { 230 get3DProperty: {
231 value: function(el, prop) { 231 value: function(el, prop) {
232 if(el.elementModel && el.elementModel.props3D) { 232 if(el.elementModel.props3D) {
233 return el.elementModel.props3D[prop]; 233 return el.elementModel.props3D[prop];
234 } 234 }
235 } 235 }
@@ -237,7 +237,7 @@ exports.ElementController = Montage.create(Component, {
237 237
238 getMatrix: { 238 getMatrix: {
239 value: function(el) { 239 value: function(el) {
240 if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.matrix3d) { 240 if(el.elementModel.props3D && el.elementModel.props3D.matrix3d) {
241 return el.elementModel.props3D.matrix3d.slice(0); 241 return el.elementModel.props3D.matrix3d.slice(0);
242 } else { 242 } else {
243 var mat; 243 var mat;
@@ -257,7 +257,7 @@ exports.ElementController = Montage.create(Component, {
257 257
258 getPerspectiveDist: { 258 getPerspectiveDist: {
259 value: function(el) { 259 value: function(el) {
260 if(el.elementModel && el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) { 260 if(el.elementModel.props3D && el.elementModel.props3D.perspectiveDist) {
261 return el.elementModel.props3D.perspectiveDist; 261 return el.elementModel.props3D.perspectiveDist;
262 } else { 262 } else {
263 var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false); 263 var dist = this.application.ninja.stylesController.getPerspectiveDistFromElement(el, false);