浏览代码

Fix undefined parseASCII

Tristan VALCKE 7 年之前
父节点
当前提交
f28233f50f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/js/loaders/XLoader.js

+ 2 - 1
examples/js/loaders/XLoader.js

@@ -167,7 +167,8 @@ THREE.XLoader.prototype = {
 
 	parseBinary: function ( data ) {
 
-		return parseASCII( String.fromCharCode.apply( null, data ) );
+		var scope = this;
+		return scope.parseASCII( String.fromCharCode.apply( null, data ) );
 
 	},