Explorar o código

cmp w/ strict (in)eq (#25574)

ycw %!s(int64=2) %!d(string=hai) anos
pai
achega
b32a3de755
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      src/extras/ImageUtils.js
  2. 2 2
      src/geometries/SphereGeometry.js
  3. 1 1
      src/math/Box3.js

+ 1 - 1
src/extras/ImageUtils.js

@@ -13,7 +13,7 @@ class ImageUtils {
 
 		}
 
-		if ( typeof HTMLCanvasElement == 'undefined' ) {
+		if ( typeof HTMLCanvasElement === 'undefined' ) {
 
 			return image.src;
 

+ 2 - 2
src/geometries/SphereGeometry.js

@@ -50,11 +50,11 @@ class SphereGeometry extends BufferGeometry {
 
 			let uOffset = 0;
 
-			if ( iy == 0 && thetaStart == 0 ) {
+			if ( iy === 0 && thetaStart === 0 ) {
 
 				uOffset = 0.5 / widthSegments;
 
-			} else if ( iy == heightSegments && thetaEnd == Math.PI ) {
+			} else if ( iy === heightSegments && thetaEnd === Math.PI ) {
 
 				uOffset = - 0.5 / widthSegments;
 

+ 1 - 1
src/math/Box3.js

@@ -201,7 +201,7 @@ class Box3 {
 
 		if ( geometry !== undefined ) {
 
-			if ( precise && geometry.attributes != undefined && geometry.attributes.position !== undefined ) {
+			if ( precise && geometry.attributes !== undefined && geometry.attributes.position !== undefined ) {
 
 				const position = geometry.attributes.position;
 				for ( let i = 0, l = position.count; i < l; i ++ ) {