rename var

This commit is contained in:
James Campos 2011-01-17 18:38:56 -08:00
parent 527bd72486
commit 292c3e1e6c
2 changed files with 6 additions and 6 deletions

View File

@ -138,8 +138,8 @@ $ = (selector, root=d.body) ->
$$ = (selector, root=d.body) -> $$ = (selector, root=d.body) ->
result = root.querySelectorAll selector result = root.querySelectorAll selector
node for node in result node for node in result
mv = (args..., parent) -> mv = (children..., parent) ->
(parent.appendChild child) for child in args (parent.appendChild child) for child in children
getConfig = (name) -> getConfig = (name) ->
GM_getValue name, config[name][0] GM_getValue name, config[name][0]
getTime = -> getTime = ->

View File

@ -239,11 +239,11 @@
return _results; return _results;
}; };
mv = function() { mv = function() {
var args, child, parent, _i, _j, _len, _results; var child, children, parent, _i, _j, _len, _results;
args = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), parent = arguments[_i++]; children = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), parent = arguments[_i++];
_results = []; _results = [];
for (_j = 0, _len = args.length; _j < _len; _j++) { for (_j = 0, _len = children.length; _j < _len; _j++) {
child = args[_j]; child = children[_j];
_results.push(parent.appendChild(child)); _results.push(parent.appendChild(child));
} }
return _results; return _results;