don't redeclare vars; fix semicolons
This commit is contained in:
parent
9f2dc33124
commit
4fbfc139b4
3 changed files with 16 additions and 16 deletions
|
|
@ -123,7 +123,7 @@ Ox.once = function(fn) {
|
|||
return function() {
|
||||
if (!once) {
|
||||
once = true;
|
||||
fn.apply(null, args);
|
||||
fn.apply(null, arguments);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
@ -140,8 +140,8 @@ Ox.queue <f> Queue of asynchronous function calls with cached results
|
|||
maxThreads <n|10> Number of parallel function calls
|
||||
@*/
|
||||
Ox.queue = function(fn, maxThreads) {
|
||||
var maxThreads = maxThreads || 10,
|
||||
processing = [],
|
||||
maxThreads = maxThreads || 10;
|
||||
var processing = [],
|
||||
queued = [],
|
||||
ret = Ox.cache(function() {
|
||||
var args = Ox.slice(arguments);
|
||||
|
|
@ -214,7 +214,7 @@ Ox.throttle = function(fn, ms) {
|
|||
}
|
||||
timeout = null;
|
||||
}, ms);
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue