1
0
Fork 0
forked from 0x2620/oxjs

update geo module

This commit is contained in:
rolux 2011-11-23 15:53:17 +01:00
commit e0d4dd3bec
1619 changed files with 6021 additions and 686370 deletions

View file

@ -37,9 +37,9 @@ Ox.contains = function(col, val) {
/*@
Ox.copy <f> Returns a (shallow or deep) copy of an object or array
> (function() { a = ['v']; b = Ox.copy(a); a[0] = null; return b[0]; }())
> (function() { var a = ['v'], b = Ox.copy(a); a[0] = null; return b[0]; }())
'v'
> (function() { a = {k: 'v'}; b = Ox.copy(a); a.k = null; return b.k; }())
> (function() { var a = {k: 'v'}, b = Ox.copy(a); a.k = null; return b.k; }())
'v'
> Ox.clone(0)
0

View file

@ -37,7 +37,13 @@ Ox.getJSON = function(url, callback) {
Ox.get(url, function(data) {
callback(JSON.parse(data));
});
}
};
Ox.getJSONC = function(url, callback) {
Ox.get(url, function(data) {
callback(JSON.parse(Ox.minify(data)));
});
};
/*@
Ox.loadFile <f> Loads a file (image, script or stylesheet)