ソースを参照

Fix arrow function in index.js

Ben Hsieh 7 年 前
コミット
10d9e63462
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      src/index.js

+ 1
- 1
src/index.js ファイルの表示

@@ -172,7 +172,7 @@ function fetch(...args:any):Promise {
172 172
       delete promise['uploadProgress']
173 173
       delete promise['stateChange']
174 174
       delete promise['cancel']
175
-      promise.cancel = () {
175
+      promise.cancel = () => {
176 176
         console.warn('finished request could not be canceled')
177 177
       }
178 178