-- whitespace

This commit is contained in:
Mariusz Nowak
2013-07-22 19:33:23 +02:00
parent f955c6ffbd
commit aa79f75eb6

View File

@@ -21,9 +21,7 @@ module.exports = require('./_base')(function (conf, length) {
var id = '', i;
if (length) {
id += args[i = 0];
while (--length) {
id += '\u0001' + args[++i];
}
while (--length) id += '\u0001' + args[++i];
} else {
id = '\u0002';
}
@@ -45,11 +43,8 @@ module.exports = require('./_base')(function (conf, length) {
hitListeners && conf.emit('hit', id, arguments, this);
return cache[id];
} else {
if (arguments.length === 1) {
value = call.call(fn, this, id);
} else {
value = apply.call(fn, this, arguments);
}
if (arguments.length === 1) value = call.call(fn, this, id);
else value = apply.call(fn, this, arguments);
if (cache.hasOwnProperty(id)) {
throw new CustomError("Circular invocation", 'CIRCULAR_INVOCATION');
}