소스 검색

make_model: revert fd25610 'reset promise on rejection'

since the client should deal with rejected promise
master
Bing Sun 5 년 전
부모
커밋
a22229e8d4
로그인 계정: sunb GPG 키 ID: F7795F8C590626AB
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. +1
    -6
      src/util/make_model.js

+ 1
- 6
src/util/make_model.js 파일 보기

@@ -162,13 +162,11 @@ export default (options={}) => {
console.warn('The response range is narrower than requested, probably due to an upstream hard limit.')

// clean model state
_promise = null
this.reset()

// return data
return _cache.data.slice(_begin, _end + 1)
}).finally(() => {
// clean model state
_promise = null
})

return _promise
@@ -207,9 +205,6 @@ export default (options={}) => {
// clean state
_promise = null
this.reset()
}).finally(() => {
// clean state
_promise = null
})

return _promise


불러오는 중...
취소
저장