add Ox.Log, determine Ox.PATH by looking at the _last_ Ox.js script
This commit is contained in:
parent
1954a7a799
commit
116d0bfdbf
4 changed files with 23 additions and 5 deletions
|
|
@ -77,7 +77,7 @@ Ox.SHORT_MONTHS = Ox.MONTHS.map(function(val) {
|
|||
//@ Ox.PATH <str> Path of Ox.js
|
||||
Ox.PATH = Ox.makeArray(
|
||||
document.getElementsByTagName('script')
|
||||
).filter(function(element) {
|
||||
).reverse().filter(function(element) {
|
||||
return /Ox\.js$/.test(element.src);
|
||||
})[0].src.replace(/Ox\.js$/, '');
|
||||
//@ Ox.PREFIXES <[str]> <code>['K', 'M', 'G', 'T', 'P']</code>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue