Fix build after shimKeys change.

Former-commit-id: 7ca25a08f3ac20e3b8410fbc975c96da2570e0a7
This commit is contained in:
John-David Dalton
2012-10-14 02:17:25 -07:00
parent 98a09532eb
commit a26c3e9d3c

View File

@@ -1272,8 +1272,8 @@
// replace `_.keys` with `shimKeys`
if (!isRemoved(source, 'keys')) {
source = source.replace(
matchFunction(source, 'keys').replace(/[\s\S]+?var keys *=/, ''),
matchFunction(source, 'shimKeys').replace(/[\s\S]+?var shimKeys *=/, '')
matchFunction(source, 'keys').replace(/[\s\S]+?var keys *= */, ''),
matchFunction(source, 'shimKeys').replace(/[\s\S]+?function shimKeys/, 'function').replace(/}\n$/, '};\n')
);
source = removeFunction(source, 'shimKeys');