Răsfoiți Sursa

Fix undefined parseASCII

Tristan VALCKE 7 ani în urmă
părinte
comite
f28233f50f
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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 ) );
 
 	},