diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 0e6711d66..0007dc354 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11924,10 +11924,18 @@ }); }, node: function() { + var x; MarkNewIPs.ipCount = this.ipCount; - MarkNewIPs.postIDs = this.posts.keys.map(function(x) { - return +x; - }); + MarkNewIPs.postIDs = (function() { + var _i, _len, _ref, _results; + _ref = this.post.keys; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + x = _ref[_i]; + _results.push(+x); + } + return _results; + }).call(this); return $.on(d, 'ThreadUpdate', MarkNewIPs.onUpdate); }, onUpdate: function(e) { diff --git a/builds/crx/script.js b/builds/crx/script.js index a56929715..d300b0aef 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11913,10 +11913,18 @@ }); }, node: function() { + var x; MarkNewIPs.ipCount = this.ipCount; - MarkNewIPs.postIDs = this.posts.keys.map(function(x) { - return +x; - }); + MarkNewIPs.postIDs = (function() { + var _i, _len, _ref, _results; + _ref = this.post.keys; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + x = _ref[_i]; + _results.push(+x); + } + return _results; + }).call(this); return $.on(d, 'ThreadUpdate', MarkNewIPs.onUpdate); }, onUpdate: function(e) { diff --git a/src/Monitoring/MarkNewIPs.coffee b/src/Monitoring/MarkNewIPs.coffee index 5be46cd26..58c4b5975 100644 --- a/src/Monitoring/MarkNewIPs.coffee +++ b/src/Monitoring/MarkNewIPs.coffee @@ -7,7 +7,7 @@ MarkNewIPs = node: -> MarkNewIPs.ipCount = @ipCount - MarkNewIPs.postIDs = @posts.keys.map (x) -> +x + MarkNewIPs.postIDs = (+x for x in @post.keys) $.on d, 'ThreadUpdate', MarkNewIPs.onUpdate onUpdate: (e) ->