forked from 0x2620/oxjs
Ox.toArray -> Ox.slice
This commit is contained in:
parent
3a28b08d46
commit
031aa4367b
11 changed files with 20 additions and 20 deletions
|
|
@ -149,7 +149,7 @@ Ox.getFile = (function() {
|
|||
}
|
||||
}
|
||||
function findFileInHead() {
|
||||
return Ox.toArray(
|
||||
return Ox.slice(
|
||||
document.getElementsByTagName(type == 'css' ? 'link' : 'script')
|
||||
).map(function(element) {
|
||||
return element[type == 'css' ? 'href' : 'src'] == file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue