master
Avril 6 years ago
parent 5e2c1fa812
commit 82b55693b2
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -105,9 +105,9 @@ exports.defaultConfig = cfg;
exports.Config = Config;
function randomise(cb, conf) {
if(conf)
var cfg = conf;
cfg.debug("Calling with params "+JSON.stringify(cfg));
randomiseWith(cfg.debug, cfg.number, cfg.range, cfg.page, cfg.tags, cb);
if(!conf)
return randomise(cb, cfg);
conf.debug("Calling with params "+JSON.stringify(conf));
randomiseWith(conf.debug, conf.number, conf.range, conf.page, conf.tags, cb);
}
exports.randomise = randomise;

Loading…
Cancel
Save