cosmetic changes
This commit is contained in:
parent
eb4808d4c1
commit
3005d4a4aa
1 changed files with 2 additions and 8 deletions
|
|
@ -100,15 +100,9 @@ Ox.queue = function(fn, maxThreads) {
|
||||||
queued = [],
|
queued = [],
|
||||||
ret = Ox.cache(function() {
|
ret = Ox.cache(function() {
|
||||||
var args = Ox.toArray(arguments);
|
var args = Ox.toArray(arguments);
|
||||||
queued.push({
|
queued.push({args: args, key: getKey(args)});
|
||||||
args: args,
|
|
||||||
key: getKey(args)
|
|
||||||
});
|
|
||||||
process();
|
process();
|
||||||
}, {
|
}, {async: true, key: getKey}),
|
||||||
async: true,
|
|
||||||
key: getKey
|
|
||||||
}),
|
|
||||||
threads = 0;
|
threads = 0;
|
||||||
ret.cancel = function() {
|
ret.cancel = function() {
|
||||||
processing = [];
|
processing = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue