don't redeclare vars; fix semicolons

This commit is contained in:
rolux 2014-08-19 10:18:56 +02:00
commit 4fbfc139b4
3 changed files with 16 additions and 16 deletions

View file

@ -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);
};
}
};
};