Revert "You ain't gonna fool a cache, by appending a search to a hash. Yo."

This reverts commit 624b4e38534be9cba9b0a116d60a29e92f3b3ca1.

`location.origin` is undefined in foxfire
This commit is contained in:
James Campos 2011-07-30 22:24:30 -07:00
parent 1c276c0fba
commit 6b7cd5afaa
2 changed files with 2 additions and 2 deletions

View File

@ -1698,7 +1698,7 @@
if ((_ref = updater.request) != null) {
_ref.abort();
}
url = location.origin + location.pathname + '?' + Date.now();
url = location.href + '?' + Date.now();
cb = updater.cb.update;
return updater.request = $.get(url, cb);
}

View File

@ -1380,7 +1380,7 @@ updater =
update: ->
updater.request?.abort()
url = location.origin + location.pathname + '?' + Date.now() # fool the cache
url = location.href + '?' + Date.now() # fool the cache
cb = updater.cb.update
updater.request = $.get url, cb