one-liner
This commit is contained in:
parent
9de8b54f15
commit
3540e6a5ca
@ -434,12 +434,10 @@
|
||||
});
|
||||
}
|
||||
$$ = function(selector, root) {
|
||||
var result;
|
||||
if (root == null) {
|
||||
root = d.body;
|
||||
}
|
||||
result = root.querySelectorAll(selector);
|
||||
return Array.prototype.slice.call(result);
|
||||
return Array.prototype.slice.call(root.querySelectorAll(selector));
|
||||
};
|
||||
expandComment = {
|
||||
init: function() {
|
||||
|
||||
@ -299,8 +299,7 @@ else
|
||||
localStorage[name] = JSON.stringify value
|
||||
|
||||
$$ = (selector, root=d.body) ->
|
||||
result = root.querySelectorAll selector
|
||||
Array::slice.call result
|
||||
Array::slice.call root.querySelectorAll selector
|
||||
|
||||
#funks
|
||||
expandComment =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user