mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Minor cleanup of setting __actions__ in _.mixin.
This commit is contained in:
@@ -10936,12 +10936,10 @@
|
|||||||
return function() {
|
return function() {
|
||||||
var chainAll = this.__chain__;
|
var chainAll = this.__chain__;
|
||||||
if (chain || chainAll) {
|
if (chain || chainAll) {
|
||||||
var result = object(this.__wrapped__);
|
var result = object(this.__wrapped__),
|
||||||
(result.__actions__ = arrayCopy(this.__actions__)).push({
|
actions = result.__actions__ = arrayCopy(this.__actions__);
|
||||||
'func': func,
|
|
||||||
'args': arguments,
|
actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
|
||||||
'thisArg': object
|
|
||||||
});
|
|
||||||
result.__chain__ = chainAll;
|
result.__chain__ = chainAll;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user