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

XHRLoader: Using event.target instead of this. See #7300.

上级 2a7aa82c
......@@ -39,9 +39,11 @@ THREE.XHRLoader.prototype = {
request.addEventListener( 'load', function ( event ) {
THREE.Cache.add( url, this.response );
var response = event.target.response;
if ( onLoad ) onLoad( this.response );
THREE.Cache.add( url, response );
if ( onLoad ) onLoad( response );
scope.manager.itemEnd( url );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册