Ensure Backbone test only adds missing methods.

This commit is contained in:
John-David Dalton
2016-01-15 23:36:29 -08:00
parent c0a6f051fc
commit 6ecc675670

View File

@@ -41,7 +41,7 @@
return function(_) {
lodash.defaultsDeep(_, { 'templateSettings': lodash.templateSettings });
lodash.mixin(_, lodash.pick(lodash, [
lodash.mixin(_, lodash.pick(lodash, lodash.difference([
'countBy',
'debounce',
'difference',
@@ -58,7 +58,7 @@
'reject',
'sample',
'without'
]));
], lodash.functions(_))));
lodash.forOwn(keyMap, function(realName, otherName) {
_[otherName] = lodash[realName];