Bump to v4.11.0.

This commit is contained in:
John-David Dalton
2016-04-12 22:18:39 -07:00
parent 76b289fe6e
commit 63d9a3fc42
23 changed files with 250 additions and 126 deletions

View File

@@ -1,5 +1,11 @@
define(['./toString'], function(toString) {
/** Used for built-in method references. */
var stringProto = String.prototype;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeReplace = stringProto.replace;
/**
* Replaces matches for `pattern` in `string` with `replacement`.
*
@@ -23,7 +29,7 @@ define(['./toString'], function(toString) {
var args = arguments,
string = toString(args[0]);
return args.length < 3 ? string : string.replace(args[1], args[2]);
return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
}
return replace;