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