this should never be used
This commit is contained in:
parent
572d54e0bb
commit
c9e62f3889
@ -47,10 +47,10 @@ $.ajax = do ->
|
||||
# This saves a lot of bandwidth and CPU time for both the users and the servers.
|
||||
lastModified = {}
|
||||
(url, options, extra={}) ->
|
||||
{type, whenModified, upCallbacks, form, sync} = extra
|
||||
{type, whenModified, upCallbacks, form} = extra
|
||||
r = new XMLHttpRequest()
|
||||
type or= form and 'post' or 'get'
|
||||
r.open type, url, !sync
|
||||
r.open type, url, true
|
||||
if whenModified
|
||||
r.setRequestHeader 'If-Modified-Since', lastModified[url] if url of lastModified
|
||||
$.on r, 'load', -> lastModified[url] = r.getResponseHeader 'Last-Modified'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user