浏览代码

Removed debugger bits.

Mr.doob 12 年之前
父节点
当前提交
a851b6b645
共有 5 个文件被更改,包括 1 次插入16 次删除
  1. 0 2
      src/math/Matrix4.js
  2. 1 2
      src/math/Quaternion.js
  3. 0 2
      src/math/Vector2.js
  4. 0 8
      src/math/Vector3.js
  5. 0 2
      src/math/Vector4.js

+ 0 - 2
src/math/Matrix4.js

@@ -250,8 +250,6 @@ THREE.Matrix4.prototype = {
 
 	multiply: function ( m ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		return this.multiplyMatrices( this, m );
 
 	},

+ 1 - 2
src/math/Quaternion.js

@@ -233,9 +233,8 @@ THREE.Quaternion.prototype = {
 
 	multiply: function ( b ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		// from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm
+
 		var qax = this.x, qay = this.y, qaz = this.z, qaw = this.w,
 		qbx = b.x, qby = b.y, qbz = b.z, qbw = b.w;
 

+ 0 - 2
src/math/Vector2.js

@@ -77,8 +77,6 @@ THREE.Vector2.prototype = {
 
 	add: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		this.x += v.x;
 		this.y += v.y;
 

+ 0 - 8
src/math/Vector3.js

@@ -92,8 +92,6 @@ THREE.Vector3.prototype = {
 
 	add: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		this.x += v.x;
 		this.y += v.y;
 		this.z += v.z;
@@ -124,8 +122,6 @@ THREE.Vector3.prototype = {
 
 	sub: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		this.x -= v.x;
 		this.y -= v.y;
 		this.z -= v.z;
@@ -146,8 +142,6 @@ THREE.Vector3.prototype = {
 
 	multiply: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		this.x *= v.x;
 		this.y *= v.y;
 		this.z *= v.z;
@@ -414,8 +408,6 @@ THREE.Vector3.prototype = {
 
 	cross: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		var x = this.x, y = this.y, z = this.z;
 
 		this.x = y * v.z - z * v.y;

+ 0 - 2
src/math/Vector4.js

@@ -103,8 +103,6 @@ THREE.Vector4.prototype = {
 
 	add: function ( v ) {
 
-		if ( arguments.length > 1 ) debugger;
-
 		this.x += v.x;
 		this.y += v.y;
 		this.z += v.z;