diff --git a/4chan_x.coffee b/4chan_x.coffee index 61f348af7..5a83a5869 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -138,8 +138,8 @@ $ = (selector, root=d.body) -> $$ = (selector, root=d.body) -> result = root.querySelectorAll selector node for node in result -mv = (args..., parent) -> - (parent.appendChild child) for child in args +mv = (children..., parent) -> + (parent.appendChild child) for child in children getConfig = (name) -> GM_getValue name, config[name][0] getTime = -> diff --git a/4chan_x.js b/4chan_x.js index 8d7918eed..265add903 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -239,11 +239,11 @@ return _results; }; mv = function() { - var args, child, parent, _i, _j, _len, _results; - args = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), parent = arguments[_i++]; + var child, children, parent, _i, _j, _len, _results; + children = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), parent = arguments[_i++]; _results = []; - for (_j = 0, _len = args.length; _j < _len; _j++) { - child = args[_j]; + for (_j = 0, _len = children.length; _j < _len; _j++) { + child = children[_j]; _results.push(parent.appendChild(child)); } return _results;