remove an onload dependency

This commit is contained in:
rolux 2012-09-03 21:59:53 +02:00
parent 863ddfeafa
commit baf29d068b

View file

@ -77,7 +77,7 @@ Ox.SHORT_MONTHS = Ox.MONTHS.map(function(val) {
return val.slice(0, 3);
});
//@ Ox.PATH <str> Path of Ox.js
Ox.PATH = Ox.toArray(
Ox.PATH = Array.prototype.slice.call(
document.getElementsByTagName('script')
).reverse().filter(function(element) {
return /Ox\.js$/.test(element.src);