Return guard.

This commit is contained in:
Nicolas Stepien 2013-03-02 01:19:35 +01:00
parent 0be7b3bb29
commit e0a4f20615
2 changed files with 4 additions and 0 deletions

View File

@ -5211,6 +5211,9 @@
},
onUpdate: function(e) {
var fileCount, fileLimit, postCount, postLimit, _ref;
if (e.detail[404]) {
return;
}
_ref = e.detail, postCount = _ref.postCount, fileCount = _ref.fileCount, postLimit = _ref.postLimit, fileLimit = _ref.fileLimit;
return ThreadStats.update(postCount, fileCount, postLimit, fileLimit);
},

View File

@ -3503,6 +3503,7 @@ ThreadStats =
$.on d, 'ThreadUpdate', ThreadStats.onUpdate
$.add d.body, ThreadStats.dialog
onUpdate: (e) ->
return if e.detail[404]
{postCount, fileCount, postLimit, fileLimit} = e.detail
ThreadStats.update postCount, fileCount, postLimit, fileLimit
update: (postCount, fileCount, postLimit, fileLimit) ->