From baf29d068bf51698bdef9dba5fdc68f4c9da160a Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 3 Sep 2012 21:59:53 +0200 Subject: [PATCH] remove an onload dependency --- source/Ox/js/Constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Constants.js b/source/Ox/js/Constants.js index 8e8ac77f..1f0df000 100644 --- a/source/Ox/js/Constants.js +++ b/source/Ox/js/Constants.js @@ -77,7 +77,7 @@ Ox.SHORT_MONTHS = Ox.MONTHS.map(function(val) { return val.slice(0, 3); }); //@ Ox.PATH 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);