lint
This commit is contained in:
parent
c0dbb8635c
commit
1fe4a08e71
3 changed files with 4 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ module.exports = function($window, Promise) {
|
|||
function complete() {if (--count === 0 && typeof oncompletion === "function") oncompletion()}
|
||||
|
||||
return function finalize(promise) {
|
||||
var then = promise.then, catcher = promise.catch
|
||||
var then = promise.then
|
||||
promise.then = function() {
|
||||
count++
|
||||
var next = then.apply(promise, arguments)
|
||||
|
|
@ -87,7 +87,7 @@ module.exports = function($window, Promise) {
|
|||
if (useBody && (args.data != null)) xhr.send(args.data)
|
||||
else xhr.send()
|
||||
})
|
||||
return args.background === true ? promise : finalize(promise)
|
||||
return args.background === true ? promise : finalize(promise)
|
||||
}
|
||||
|
||||
function jsonp(args, extra) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue