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) ->
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 = ->

View File

@ -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;