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

XHRLoader: Clean up.

上级 50b4a74b
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册