Browse Source

branch-to-fix-#9835 (#9840)

matthias-w 8 years ago
parent
commit
8caf9c5d45
3 changed files with 6 additions and 0 deletions
  1. 2 0
      src/math/Vector2.js
  2. 2 0
      src/math/Vector3.js
  3. 2 0
      src/math/Vector4.js

+ 2 - 0
src/math/Vector2.js

@@ -87,6 +87,8 @@ Vector2.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},
 

+ 2 - 0
src/math/Vector3.js

@@ -79,6 +79,8 @@ Vector3.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},
 

+ 2 - 0
src/math/Vector4.js

@@ -86,6 +86,8 @@ Vector4.prototype = {
 			default: throw new Error( 'index is out of range: ' + index );
 
 		}
+		
+		return this;
 
 	},