Thread Watcher: Remove fake abort for cross-site requests.
This commit is contained in:
parent
f055869286
commit
74268f78d5
@ -178,8 +178,8 @@ ThreadWatcher =
|
|||||||
|
|
||||||
abort: ->
|
abort: ->
|
||||||
for req in ThreadWatcher.requests when req.readyState isnt 4 # DONE
|
for req in ThreadWatcher.requests when req.readyState isnt 4 # DONE
|
||||||
req.abort()
|
req.abort?()
|
||||||
ThreadWatcher.clearRequests()
|
return
|
||||||
|
|
||||||
fetchAuto: ->
|
fetchAuto: ->
|
||||||
clearTimeout ThreadWatcher.timeout
|
clearTimeout ThreadWatcher.timeout
|
||||||
@ -227,10 +227,8 @@ ThreadWatcher =
|
|||||||
,
|
,
|
||||||
whenModified: if force then false else 'ThreadWatcher'
|
whenModified: if force then false else 'ThreadWatcher'
|
||||||
else
|
else
|
||||||
req = {abort: () -> req.aborted = true}
|
req = CrossOrigin.ajax url,
|
||||||
CrossOrigin.ajax url,
|
|
||||||
onloadend: ->
|
onloadend: ->
|
||||||
return if req.aborted
|
|
||||||
ThreadWatcher.parseStatus.call @, thread
|
ThreadWatcher.parseStatus.call @, thread
|
||||||
timeout: $.MINUTE
|
timeout: $.MINUTE
|
||||||
ThreadWatcher.requests.push req
|
ThreadWatcher.requests.push req
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user