Replace _.isPlainObject with shimIsPlainObject.

Former-commit-id: c1c273a352387e25ae5a6a22dfda8871beac8400
This commit is contained in:
John-David Dalton
2013-05-18 19:32:16 -07:00
parent 9270cc47b5
commit 24fd17f072

View File

@@ -1963,11 +1963,7 @@
source = removeSupportProp(source, 'fastBind');
source = replaceSupportProp(source, 'argsClass', 'false');
_.each(['getPrototypeOf'], function(varName) {
source = replaceVar(source, varName, 'false');
});
_.each(['isIeOpera', 'isV8', 'nativeBind', 'nativeCreate', 'nativeIsArray', 'nativeKeys', 'reNative'], function(varName) {
_.each(['isIeOpera', 'isV8', 'getPrototypeOf', 'nativeBind', 'nativeCreate', 'nativeIsArray', 'nativeKeys', 'reNative'], function(varName) {
source = removeVar(source, varName);
});
@@ -1998,6 +1994,14 @@
source = util.remove(source);
});
// replace `_.isPlainObject` with `shimIsPlainObject`
source = source.replace(
matchFunction(source, 'isPlainObject').replace(/[\s\S]+?var isPlainObject *= */, ''),
matchFunction(source, 'shimIsPlainObject').replace(/[\s\S]+?function shimIsPlainObject/, 'function')
);
source = removeFunction(source, 'shimIsPlainObject');
// replace `_.keys` with `shimKeys`
source = source.replace(
matchFunction(source, 'keys').replace(/[\s\S]+?var keys *= */, ''),