Explorar o código

Refactoring code style, like suggested

https://github.com/mrdoob/three.js/pull/12606#issuecomment-343121765
Pascal Häusler %!s(int64=7) %!d(string=hai) anos
pai
achega
452f0f73ce
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      examples/js/loaders/ColladaLoader.js

+ 1 - 3
examples/js/loaders/ColladaLoader.js

@@ -1760,9 +1760,7 @@ THREE.ColladaLoader.prototype = {
 
 			var mesh = getElementsByTagName( xml, 'mesh' )[ 0 ];
 			
-			if (!mesh) {
-				return;
-			}
+			if ( mesh === undefined ) return;
 
 			for ( var i = 0; i < mesh.childNodes.length; i ++ ) {