From aa79f75eb6681605f91c9ded05af4f1baf9c7cb2 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 22 Jul 2013 19:33:23 +0200 Subject: [PATCH] -- whitespace --- lib/primitive.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/primitive.js b/lib/primitive.js index 5091b1f..3a163d9 100644 --- a/lib/primitive.js +++ b/lib/primitive.js @@ -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'); }