提交 ef638639 编写于 作者: M Mr.doob

Merge pull request #7553 from leitzler/leitzler-loader-1

Fixed loadingmanager bug in 'load' event listener
......@@ -45,17 +45,19 @@ THREE.XHRLoader.prototype = {
THREE.Cache.add( url, response );
if ( this.status == 200 && this.readyState == 4 ) {
if ( this.status === 200 && this.readyState === 4 ) {
if ( onLoad ) onLoad( response );
scope.manager.itemEnd( url );
} else {
if ( onError ) onError( event );
}
scope.manager.itemError( url );
scope.manager.itemEnd( url );
}
}, false );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册