fix dependencies

This commit is contained in:
rolux 2012-09-04 00:45:43 +02:00
parent 8bfe9f5335
commit bed08786a1
3 changed files with 11 additions and 4 deletions

View file

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

View file

@ -64,7 +64,7 @@
}, },
salt = Ox.range(2).map(function(){ salt = Ox.range(2).map(function(){
return Ox.range(16).map(function() { return Ox.range(16).map(function() {
return String.fromCharCode(65 + Ox.random(26)); return Ox.char(65 + Ox.random(26));
}).join(''); }).join('');
}); });

View file

@ -99,8 +99,15 @@ def build_oxjs(downloads=False, geo=False):
], ],
[ [
'Function.js', # getSortValue (Array.js) depends on Ox.cache 'Function.js', # getSortValue (Array.js) depends on Ox.cache
'Math.js', # Ox.MAX_LATITUDE (Constants.js) depends on Ox.sinh 'Polyfill.js' # FIXME: not clear if needed here
'Polyfill.js', # FIXME: not clear if needed here ],
[
'Array.js', # Ox.slice (Collection.js) depends on Ox.toArray, salt (HTML.js) depends on Ox.range
'String.js' # salt (HTML.js) depends on Ox.char
],
[
'Collection.js', # Ox.PATH (Constants.js) depends on Ox.slice
'Math.js' # Ox.MAX_LATITUDE (Constants.js) depends on Ox.sinh
] ]
] ]
js = '' js = ''