2
0
Mr.doob 9 жил өмнө
parent
commit
b648f0d261

+ 6 - 2
src/loaders/XHRLoader.js

@@ -46,10 +46,14 @@ THREE.XHRLoader.prototype = {
 			THREE.Cache.add( url, response );
 
 			if ( this.status == 200 && this.readyState == 4 ) {
-				if ( onLoad ) onLoad( response );	
+
+				if ( onLoad ) onLoad( response );
+
 			} else {
+
 				if ( onError ) onError( event );
-			};
+
+			}
 
 			scope.manager.itemEnd( url );