Fix a tiny error.

This commit is contained in:
Nicolas Stepien 2013-02-20 14:37:24 +01:00
parent a2fe5c7819
commit 64b09feac3
2 changed files with 4 additions and 0 deletions

View File

@ -4842,6 +4842,9 @@
},
onUpdate: function(e) {
var post, _i, _len, _ref;
if (e.detail[404]) {
return;
}
_ref = e.detail.newPosts;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
post = _ref[_i];

View File

@ -3149,6 +3149,7 @@ ThreadStats =
$.on d, 'ThreadUpdate', ThreadStats.onUpdate
$.add d.body, ThreadStats.dialog
onUpdate: (e) ->
return if e.detail[404]
for post in e.detail.newPosts
ThreadStats.postCount++
ThreadStats.fileCount++ if post.file