Forráskód Böngészése

fix accidential global in Matrix3.compose and Matrix4.compose unit tests.

Ben Houston 12 éve
szülő
commit
51ee3f2cfa
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      test/unit/math/Matrix3.js
  2. 1 1
      test/unit/math/Matrix4.js

+ 1 - 1
test/unit/math/Matrix3.js

@@ -191,7 +191,7 @@ test( "transpose", function() {
 	ok( matrixEquals3( a, b ), "Passed!" );
 
 	b = new THREE.Matrix3( 0, 1, 2, 3, 4, 5, 6, 7, 8 );
-	c = b.clone().transpose();
+	var c = b.clone().transpose();
 	ok( ! matrixEquals3( b, c ), "Passed!" ); 
 	c.transpose();
 	ok( matrixEquals3( b, c ), "Passed!" ); 

+ 1 - 1
test/unit/math/Matrix4.js

@@ -211,7 +211,7 @@ test( "transpose", function() {
 	ok( matrixEquals4( a, b ), "Passed!" );
 
 	b = new THREE.Matrix4( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 );
-	c = b.clone().transpose();
+	var c = b.clone().transpose();
 	ok( ! matrixEquals4( b, c ), "Passed!" ); 
 	c.transpose();
 	ok( matrixEquals4( b, c ), "Passed!" );