Browse Source

Fix implicit variable declaration in OrthographicCamera unit test

Tristan Valcke 8 năm trước cách đây
mục cha
commit
e98723d8fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/unit/cameras/OrthographicCamera.js

+ 1 - 1
test/unit/cameras/OrthographicCamera.js

@@ -6,7 +6,7 @@ module( "OrthographicCamera" );
 
 test( "updateProjectionMatrix", function() {
 	var left = -1, right = 1, top = 1, bottom = -1, near = 1, far = 3;
-	cam = new THREE.OrthographicCamera(left, right, top, bottom, near, far);
+	var cam = new THREE.OrthographicCamera(left, right, top, bottom, near, far);
 
 	// updateProjectionMatrix is called in contructor
 	var pMatrix = cam.projectionMatrix.elements;