minor cleanup
This commit is contained in:
parent
5a4de0de70
commit
1c4caa4965
1 changed files with 4 additions and 4 deletions
|
@ -181,18 +181,18 @@ Ox.loadFile = (function() {
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
Ox.loadAsync <f> run map function on all array items and call callback with results
|
Ox.loadAsync <f> Runs an asynchonous function on array elements
|
||||||
(arr, map, callback) -> <u> undefined
|
(arr, map, callback) -> <u> undefined
|
||||||
arr <s|[s]|[[s]]> string, Array of strins, or array of arrays of strings
|
arr <s|a> String or array of either strings or arrays of strings
|
||||||
Multiple strings in the same array will be processed simultaneously, but
|
Multiple strings in the same array will be processed simultaneously, but
|
||||||
multiple arrays of strings will be processed in that order.
|
multiple arrays of strings will be processed in that order.
|
||||||
callback <f> Callback function
|
callback <f> Callback function
|
||||||
results <o> result
|
results <o> Results
|
||||||
@*/
|
@*/
|
||||||
Ox.loadAsync = function(arr, map, callback) {
|
Ox.loadAsync = function(arr, map, callback) {
|
||||||
arr = Ox.makeArray(arr);
|
arr = Ox.makeArray(arr);
|
||||||
var i = 0, n = arr.length, results = {};
|
var i = 0, n = arr.length, results = {};
|
||||||
if(arr.some(Ox.isArray)) {
|
if (arr.some(Ox.isArray)) {
|
||||||
iterate();
|
iterate();
|
||||||
} else {
|
} else {
|
||||||
arr.forEach(function(item) {
|
arr.forEach(function(item) {
|
||||||
|
|
Loading…
Reference in a new issue