mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Remove dependencyObject.
Former-commit-id: 374611a2f1180402700fad5ba7f86e390150d37b
This commit is contained in:
@@ -331,11 +331,6 @@
|
||||
'sortBy'
|
||||
];
|
||||
|
||||
var depObjProps = [
|
||||
'isEqual',
|
||||
'keys'
|
||||
];
|
||||
|
||||
var props = [
|
||||
'cache',
|
||||
'criteria',
|
||||
@@ -343,13 +338,6 @@
|
||||
'value'
|
||||
];
|
||||
|
||||
// minify `dependencyObject` properties
|
||||
depObjProps.forEach(function(prop, index) {
|
||||
source = source.replace(RegExp("\\b(dependencyObject(?:\\.|\\['))" + prop + '\\b', 'g'), function(match, prelude) {
|
||||
return prelude + minNames[iteratorOptions.length + props.length + index];
|
||||
});
|
||||
});
|
||||
|
||||
// minify other properties used in functions
|
||||
var snippets = source.match(RegExp('^( *)(?:var|function) +(?:' + funcNames.join('|') + ')\\b[\\s\\S]+?\\n\\1}', 'gm'));
|
||||
if (!snippets) {
|
||||
|
||||
Reference in New Issue
Block a user