forEach inception
This commit is contained in:
parent
c5bc77c401
commit
0d98ff469c
@ -3002,7 +3002,7 @@
|
|||||||
};
|
};
|
||||||
Main = {
|
Main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var callback, cutoff, hiddenThreads, id, lastChecked, nodes, now, timestamp, tzOffset, _i, _len, _ref, _ref2;
|
var cutoff, hiddenThreads, id, lastChecked, nodes, now, timestamp, tzOffset, _ref;
|
||||||
$.unbind(document, 'DOMContentLoaded', Main.init);
|
$.unbind(document, 'DOMContentLoaded', Main.init);
|
||||||
if (location.hostname === 'sys.4chan.org') {
|
if (location.hostname === 'sys.4chan.org') {
|
||||||
QR.sys();
|
QR.sys();
|
||||||
@ -3132,11 +3132,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
nodes = $$('.op').concat($$('a + table'));
|
nodes = $$('.op').concat($$('a + table'));
|
||||||
_ref2 = g.callbacks;
|
g.callbacks.forEach(function(callback) {
|
||||||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
return nodes.forEach(callback);
|
||||||
callback = _ref2[_i];
|
});
|
||||||
nodes.forEach(callback);
|
|
||||||
}
|
|
||||||
$.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted);
|
$.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted);
|
||||||
options.init();
|
options.init();
|
||||||
if (!$.get('firstrun')) {
|
if (!$.get('firstrun')) {
|
||||||
|
|||||||
@ -2370,8 +2370,7 @@ Main =
|
|||||||
expandComment.init()
|
expandComment.init()
|
||||||
|
|
||||||
nodes = $$('.op').concat $$ 'a + table'
|
nodes = $$('.op').concat $$ 'a + table'
|
||||||
for callback in g.callbacks
|
g.callbacks.forEach (callback) -> nodes.forEach callback
|
||||||
nodes.forEach callback
|
|
||||||
$.bind $('form[name=delform]'), 'DOMNodeInserted', nodeInserted
|
$.bind $('form[name=delform]'), 'DOMNodeInserted', nodeInserted
|
||||||
options.init()
|
options.init()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user