Merge "Bind retry callback with correct this argument"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 15 May 2019 18:02:50 +0000 (18:02 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 15 May 2019 18:02:50 +0000 (18:02 +0000)
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 ) {