Преглед изворни кода

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