Bind retry callback with correct this argument
authorMatthias Mullie <git@mullie.eu>
Tue, 14 May 2019 17:15:09 +0000 (19:15 +0200)
committerMatthias Mullie <git@mullie.eu>
Tue, 14 May 2019 17:15:09 +0000 (19:15 +0200)
Change-Id: I5db9e4e967d5569d4f90590333a7af2ddab1641f

resources/src/mediawiki.api/upload.js

index de0688a..619dd7c 100644 (file)
                                        }
 
                                        // If the call flat out failed, we may want to try again...
-                                       retry = api.uploadChunk.bind( this, file, data, start, end, filekey, retries - 1 );
+                                       retry = api.uploadChunk.bind( api, file, data, start, end, filekey, retries - 1 );
                                        return api.retry( code, result, retry );
                                },
                                function ( fraction ) {