Jelajahi Sumber

Fix undefined parseASCII

Tristan VALCKE 7 tahun lalu
induk
melakukan
f28233f50f
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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 ) );
 
 	},