Derp, select once.
This commit is contained in:
parent
5ed6057b50
commit
c5bc77c401
@ -3002,7 +3002,7 @@
|
|||||||
};
|
};
|
||||||
Main = {
|
Main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var callback, cutoff, hiddenThreads, id, lastChecked, now, op, table, timestamp, tzOffset, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4;
|
var callback, cutoff, hiddenThreads, id, lastChecked, nodes, now, timestamp, tzOffset, _i, _len, _ref, _ref2;
|
||||||
$.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();
|
||||||
@ -3131,19 +3131,11 @@
|
|||||||
expandComment.init();
|
expandComment.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nodes = $$('.op').concat($$('a + table'));
|
||||||
_ref2 = g.callbacks;
|
_ref2 = g.callbacks;
|
||||||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
|
||||||
callback = _ref2[_i];
|
callback = _ref2[_i];
|
||||||
_ref3 = $$('.op');
|
nodes.forEach(callback);
|
||||||
for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) {
|
|
||||||
op = _ref3[_j];
|
|
||||||
callback(op);
|
|
||||||
}
|
|
||||||
_ref4 = $$('a + table');
|
|
||||||
for (_k = 0, _len3 = _ref4.length; _k < _len3; _k++) {
|
|
||||||
table = _ref4[_k];
|
|
||||||
callback(table);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted);
|
$.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted);
|
||||||
options.init();
|
options.init();
|
||||||
|
|||||||
@ -2369,11 +2369,9 @@ Main =
|
|||||||
if conf['Comment Expansion']
|
if conf['Comment Expansion']
|
||||||
expandComment.init()
|
expandComment.init()
|
||||||
|
|
||||||
|
nodes = $$('.op').concat $$ 'a + table'
|
||||||
for callback in g.callbacks
|
for callback in g.callbacks
|
||||||
for op in $$ '.op'
|
nodes.forEach callback
|
||||||
callback op
|
|
||||||
for table in $$ 'a + table'
|
|
||||||
callback table
|
|
||||||
$.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