Fix a tiny error.
This commit is contained in:
parent
a2fe5c7819
commit
64b09feac3
@ -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];
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user