Minor cleanup of setting __actions__ in _.mixin.

This commit is contained in:
jdalton
2015-03-09 08:33:19 -07:00
parent 51e459b386
commit d4783170e5

View File

@@ -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;
}