1
0
Fork 0
forked from 0x2620/oxjs

- add loadAsync and use in Ox.loadFile, Ox.getJSON

- add Ox.getJSONP
- fix Ox.parseHTML
- fix Ox.Doc
- add more documentation
This commit is contained in:
j 2012-05-23 01:17:17 +02:00
commit 1b08732fa7
8 changed files with 106 additions and 103 deletions

View file

@ -344,7 +344,6 @@ Ox.flatten <f> Flattens an array
[1, 2, 3, 2, 1]
@*/
Ox.flatten = function(arr) {
// fixme: can this work for objects too?
var ret = [];
arr.forEach(function(val) {
if (Ox.isArray(val)) {
@ -579,4 +578,4 @@ Ox.zip = function() {
});
});
return arr;
};
};