Browse Source

Loader: Removed arrow function.

Mr.doob 5 years ago
parent
commit
4f21a4cc35
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/loaders/Loader.js

+ 4 - 2
src/loaders/Loader.js

@@ -20,9 +20,11 @@ Object.assign( Loader.prototype, {
 
 	loadAsync: function ( url, onProgress ) {
 
-		return new Promise( ( resolve, reject ) => {
+		var scope = this;
 
-			this.load( url, resolve, onProgress, reject );
+		return new Promise( function ( resolve, reject ) {
+
+			scope.load( url, resolve, onProgress, reject );
 
 		} );