瀏覽代碼

Renamed ignoreHTTPStatus property to strict

leitzler 9 年之前
父節點
當前提交
db73634a51
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/loaders/XHRLoader.js

+ 4 - 4
src/loaders/XHRLoader.js

@@ -12,7 +12,7 @@ THREE.XHRLoader.prototype = {
 
 	constructor: THREE.XHRLoader,
 
-	ignoreHTTPStatus: false,
+	strict: true,
 
 	load: function ( url, onLoad, onProgress, onError ) {
 
@@ -48,7 +48,7 @@ THREE.XHRLoader.prototype = {
 
 			THREE.Cache.add( url, response );
 
-			if ( ( this.status === 200 && this.readyState === 4 ) || scope.ignoreHTTPStatus ) {
+			if ( ( this.status === 200 && this.readyState === 4 ) && scope.strict ) {
 
 				if ( onLoad ) onLoad( response );
 
@@ -111,9 +111,9 @@ THREE.XHRLoader.prototype = {
 
 	}
 
-	setIgnoreHTTPStatus: function ( value ) {
+	setStrict: function ( value ) {
 
-		this.ignoreHTTPStatus = value;
+		this.strict = value;
 
 	}