浏览代码

JSONLoader: Code clean up.

Mr.doob 11 年之前
父节点
当前提交
f345de7ded
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/loaders/JSONLoader.js

+ 3 - 3
src/loaders/JSONLoader.js

@@ -54,7 +54,7 @@ THREE.JSONLoader.prototype.loadAjaxJSON = function ( context, url, callback, tex
 
 
 				} else {
 				} else {
 
 
-					console.warn( "THREE.JSONLoader: [" + url + "] seems to be unreachable or file there is empty" );
+					console.error( 'THREE.JSONLoader: "' + url + '" seems to be unreachable or the file is empty.' );
 
 
 				}
 				}
 
 
@@ -66,7 +66,7 @@ THREE.JSONLoader.prototype.loadAjaxJSON = function ( context, url, callback, tex
 
 
 			} else {
 			} else {
 
 
-				console.error( "THREE.JSONLoader: Couldn't load [" + url + "] [" + xhr.status + "]" );
+				console.error( 'THREE.JSONLoader: Couldn\'t load "' + url + '" (' + xhr.status + ')' );
 
 
 			}
 			}
 
 
@@ -76,7 +76,7 @@ THREE.JSONLoader.prototype.loadAjaxJSON = function ( context, url, callback, tex
 
 
 				if ( length === 0 ) {
 				if ( length === 0 ) {
 
 
-					length = xhr.getResponseHeader( "Content-Length" );
+					length = xhr.getResponseHeader( 'Content-Length' );
 
 
 				}
 				}