From c9e62f38891e7eb9a6100790337c234268252597 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 Jun 2014 12:21:35 -0700 Subject: [PATCH] this should never be used --- src/General/lib/$.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/lib/$.coffee b/src/General/lib/$.coffee index d1da366d2..95aaa593d 100755 --- a/src/General/lib/$.coffee +++ b/src/General/lib/$.coffee @@ -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'