<3 coffeescript
This commit is contained in:
parent
b9cdfbbd3a
commit
a0a30a64ed
@ -138,8 +138,7 @@ $ = (selector, root=d.body) ->
|
||||
$$ = (selector, root=d.body) ->
|
||||
result = root.querySelectorAll selector
|
||||
node for node in result
|
||||
mv = (args...) ->
|
||||
parent = args.pop()
|
||||
mv = (args..., parent) ->
|
||||
(parent.appendChild child) for child in args
|
||||
getConfig = (name) ->
|
||||
GM_getValue name, config[name][0]
|
||||
|
||||
@ -182,12 +182,11 @@
|
||||
return _results;
|
||||
};
|
||||
mv = function() {
|
||||
var args, child, parent, _i, _len, _results;
|
||||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
|
||||
parent = args.pop();
|
||||
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++];
|
||||
_results = [];
|
||||
for (_i = 0, _len = args.length; _i < _len; _i++) {
|
||||
child = args[_i];
|
||||
for (_j = 0, _len = args.length; _j < _len; _j++) {
|
||||
child = args[_j];
|
||||
_results.push(parent.appendChild(child));
|
||||
}
|
||||
return _results;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user