From d4783170e50e81ecb38676b4685151569600f505 Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 9 Mar 2015 08:33:19 -0700 Subject: [PATCH] Minor cleanup of setting `__actions__` in `_.mixin`. --- lodash.src.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index b72802d51..2140aa6b8 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -10936,12 +10936,10 @@ return function() { var chainAll = this.__chain__; if (chain || chainAll) { - var result = object(this.__wrapped__); - (result.__actions__ = arrayCopy(this.__actions__)).push({ - 'func': func, - 'args': arguments, - 'thisArg': object - }); + var result = object(this.__wrapped__), + actions = result.__actions__ = arrayCopy(this.__actions__); + + actions.push({ 'func': func, 'args': arguments, 'thisArg': object }); result.__chain__ = chainAll; return result; }