Skip to content

Commit

Permalink
Loader: Removed arrow function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 20, 2020
1 parent 97f2a1b commit 4f21a4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/loaders/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

} );

Expand Down

0 comments on commit 4f21a4c

Please sign in to comment.