Explorar el Código

Fix arrow function in index.js

Ben Hsieh hace 7 años
padre
commit
10d9e63462
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/index.js

+ 1
- 1
src/index.js Ver fichero

@@ -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