From 1e00045b01b945d1de08c918213e4a7bd1d3e891 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Thu, 5 Feb 2015 01:45:36 -0500 Subject: [PATCH] cleanup --- js/fea/DmaPart.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/fea/DmaPart.js b/js/fea/DmaPart.js index d0a0fd05..b3d52adc 100644 --- a/js/fea/DmaPart.js +++ b/js/fea/DmaPart.js @@ -22,14 +22,21 @@ DMAPart.prototype.updateForScale = function(scale, position){ if (this.mesh) { this.mesh.scale.set(scale, scale, scale); - this._setMeshPosition(scale, position); + this._setMeshPosition(position); } }; + DMAPart.prototype._setMeshPosition = function(position){ + var mesh = this.mesh; + mesh.position.x = position.x; + mesh.position.y = position.y; + mesh.position.z = position.z; + }; + DMAPart.prototype.updateForScale = function(scale, position){ if (this.mesh) { this.mesh.scale.set(scale, scale, scale); - this._setMeshPosition(scale, position); + this._setMeshPosition(position); } }; @@ -118,7 +125,7 @@ } DMATrianglePart.prototype = Object.create(DMAPart.prototype); - DMAPart.prototype._makeMeshForType = function(type){ + DMATrianglePart.prototype._makeMeshForType = function(type){ var mesh; switch(type){ case 0: @@ -138,13 +145,6 @@ return mesh; }; - DMATrianglePart.prototype._setMeshPosition = function(scale, position){ - var mesh = this.mesh; - mesh.position.x = position.x; - mesh.position.y = position.y; - mesh.position.z = position.z; - }; - self.DMATrianglePart = DMATrianglePart; })(); \ No newline at end of file -- GitLab