I hate array#map jsperf.com/arraymap
Also, it's nice to see my callbacks class getting some use. ;__;
This commit is contained in:
parent
9cc40359b3
commit
dc3845f51a
@ -11924,10 +11924,18 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
node: function() {
|
node: function() {
|
||||||
|
var x;
|
||||||
MarkNewIPs.ipCount = this.ipCount;
|
MarkNewIPs.ipCount = this.ipCount;
|
||||||
MarkNewIPs.postIDs = this.posts.keys.map(function(x) {
|
MarkNewIPs.postIDs = (function() {
|
||||||
return +x;
|
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);
|
return $.on(d, 'ThreadUpdate', MarkNewIPs.onUpdate);
|
||||||
},
|
},
|
||||||
onUpdate: function(e) {
|
onUpdate: function(e) {
|
||||||
|
|||||||
@ -11913,10 +11913,18 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
node: function() {
|
node: function() {
|
||||||
|
var x;
|
||||||
MarkNewIPs.ipCount = this.ipCount;
|
MarkNewIPs.ipCount = this.ipCount;
|
||||||
MarkNewIPs.postIDs = this.posts.keys.map(function(x) {
|
MarkNewIPs.postIDs = (function() {
|
||||||
return +x;
|
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);
|
return $.on(d, 'ThreadUpdate', MarkNewIPs.onUpdate);
|
||||||
},
|
},
|
||||||
onUpdate: function(e) {
|
onUpdate: function(e) {
|
||||||
|
|||||||
@ -7,7 +7,7 @@ MarkNewIPs =
|
|||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
MarkNewIPs.ipCount = @ipCount
|
MarkNewIPs.ipCount = @ipCount
|
||||||
MarkNewIPs.postIDs = @posts.keys.map (x) -> +x
|
MarkNewIPs.postIDs = (+x for x in @post.keys)
|
||||||
$.on d, 'ThreadUpdate', MarkNewIPs.onUpdate
|
$.on d, 'ThreadUpdate', MarkNewIPs.onUpdate
|
||||||
|
|
||||||
onUpdate: (e) ->
|
onUpdate: (e) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user