work on firefox 3.6 (maybe)
This commit is contained in:
parent
60e718bc9f
commit
98c6b7016e
@ -482,6 +482,9 @@
|
||||
return _results;
|
||||
};
|
||||
}
|
||||
if (!d.head) {
|
||||
d.head = $('head', d);
|
||||
}
|
||||
$$ = function(selector, root) {
|
||||
if (root == null) {
|
||||
root = d.body;
|
||||
|
||||
@ -334,6 +334,9 @@ if not Object.keys
|
||||
Object.keys = (o) ->
|
||||
key for key in o
|
||||
|
||||
# upgrade your firefox god damn it!
|
||||
if not d.head then d.head = $('head', d)
|
||||
|
||||
$$ = (selector, root=d.body) ->
|
||||
Array::slice.call root.querySelectorAll selector
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user