This commit is contained in:
Nicolas Stepien 2012-07-02 18:29:05 +02:00
parent 1b24f44606
commit 3c4dac5c4d
2 changed files with 7 additions and 6 deletions

View File

@ -2641,7 +2641,7 @@
};
},
update: function() {
var count, doc, id, lastPost, nodes, reply, scroll, _i, _len, _ref;
var count, doc, id, lastPost, nodes, reply, scroll, _i, _len, _ref, _ref1;
if (this.status === 404) {
Updater.timer.textContent = '';
Updater.count.textContent = 404;
@ -2657,7 +2657,7 @@
QR.abort();
return;
}
if (this.status !== 200 && this.status !== 304) {
if ((_ref = this.status) !== 0 && _ref !== 200 && _ref !== 304) {
Updater.retryCoef += 10 * (Updater.retryCoef < 120);
if (Conf['Verbose']) {
Updater.count.textContent = this.statusText;
@ -2687,9 +2687,9 @@
lastPost = Updater.thread.lastElementChild;
id = lastPost.id.slice(2);
nodes = [];
_ref = $$('.replyContainer', doc).reverse();
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
reply = _ref[_i];
_ref1 = $$('.replyContainer', doc).reverse();
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
reply = _ref1[_i];
if (reply.id.slice(2) <= id) {
break;
}

View File

@ -2081,7 +2081,8 @@ Updater =
Unread.update true
QR.abort()
return
if @status isnt 200 and @status isnt 304
unless @status in [0, 200, 304]
# XXX 304 -> 0 in Opera
Updater.retryCoef += 10 * (Updater.retryCoef < 120)
if Conf['Verbose']
Updater.count.textContent = @statusText