diff --git a/4chan_x.user.js b/4chan_x.user.js index 4aa856304..2fde6b1af 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3002,7 +3002,7 @@ }; Main = { 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); if (location.hostname === 'sys.4chan.org') { QR.sys(); @@ -3132,11 +3132,9 @@ } } nodes = $$('.op').concat($$('a + table')); - _ref2 = g.callbacks; - for (_i = 0, _len = _ref2.length; _i < _len; _i++) { - callback = _ref2[_i]; - nodes.forEach(callback); - } + g.callbacks.forEach(function(callback) { + return nodes.forEach(callback); + }); $.bind($('form[name=delform]'), 'DOMNodeInserted', nodeInserted); options.init(); if (!$.get('firstrun')) { diff --git a/script.coffee b/script.coffee index e627049ce..4432f81a9 100644 --- a/script.coffee +++ b/script.coffee @@ -2370,8 +2370,7 @@ Main = expandComment.init() nodes = $$('.op').concat $$ 'a + table' - for callback in g.callbacks - nodes.forEach callback + g.callbacks.forEach (callback) -> nodes.forEach callback $.bind $('form[name=delform]'), 'DOMNodeInserted', nodeInserted options.init()