Ensure wrapper actions are copied in wrapperClone.

This commit is contained in:
John-David Dalton
2015-09-11 18:22:34 -07:00
parent a5213f1291
commit e42d29611c

View File

@@ -4479,7 +4479,7 @@
return wrapper.clone();
}
var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
result.__actions__ = wrapper.__actions__;
result.__actions__ = copyArray(wrapper.__actions__);
result.__index__ = wrapper.__index__;
result.__values__ = wrapper.__values__;
return result;