mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Allow _.mixin to accept a destination object as well as a source object.
Former-commit-id: 11ccb77653f017270c07579f59d75b847d4e6c65
This commit is contained in:
5
build.js
5
build.js
@@ -153,7 +153,7 @@
|
||||
'memoize': [],
|
||||
'merge': ['createCallback', 'forEach', 'forOwn', 'getArray', 'isArray', 'isObject', 'isPlainObject', 'releaseArray'],
|
||||
'min': ['basicEach', 'charAtCallback', 'createCallback', 'isArray', 'isString'],
|
||||
'mixin': ['forEach', 'functions'],
|
||||
'mixin': ['forEach', 'functions', 'isFunction'],
|
||||
'noConflict': [],
|
||||
'omit': ['basicFlatten', 'createCallback', 'forIn', 'getIndexOf'],
|
||||
'once': [],
|
||||
@@ -2716,6 +2716,9 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
if (_.contains(plusFuncs, 'chain') == !isUnderscore) {
|
||||
funcDependencyMap.mixin = _.without(funcDependencyMap.mixin, 'isFunction');
|
||||
}
|
||||
if (isUnderscore) {
|
||||
if (!isLodash('clone') && !isLodash('cloneDeep')) {
|
||||
funcDependencyMap.clone = _.without(funcDependencyMap.clone, 'forEach', 'forOwn');
|
||||
|
||||
Reference in New Issue
Block a user