Return guard.
This commit is contained in:
parent
0be7b3bb29
commit
e0a4f20615
@ -5211,6 +5211,9 @@
|
|||||||
},
|
},
|
||||||
onUpdate: function(e) {
|
onUpdate: function(e) {
|
||||||
var fileCount, fileLimit, postCount, postLimit, _ref;
|
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;
|
_ref = e.detail, postCount = _ref.postCount, fileCount = _ref.fileCount, postLimit = _ref.postLimit, fileLimit = _ref.fileLimit;
|
||||||
return ThreadStats.update(postCount, fileCount, postLimit, fileLimit);
|
return ThreadStats.update(postCount, fileCount, postLimit, fileLimit);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3503,6 +3503,7 @@ ThreadStats =
|
|||||||
$.on d, 'ThreadUpdate', ThreadStats.onUpdate
|
$.on d, 'ThreadUpdate', ThreadStats.onUpdate
|
||||||
$.add d.body, ThreadStats.dialog
|
$.add d.body, ThreadStats.dialog
|
||||||
onUpdate: (e) ->
|
onUpdate: (e) ->
|
||||||
|
return if e.detail[404]
|
||||||
{postCount, fileCount, postLimit, fileLimit} = e.detail
|
{postCount, fileCount, postLimit, fileLimit} = e.detail
|
||||||
ThreadStats.update postCount, fileCount, postLimit, fileLimit
|
ThreadStats.update postCount, fileCount, postLimit, fileLimit
|
||||||
update: (postCount, fileCount, postLimit, fileLimit) ->
|
update: (postCount, fileCount, postLimit, fileLimit) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user