Bump to v4.16.2.

This commit is contained in:
John-David Dalton
2016-09-25 13:46:15 -07:00
parent a96a747b8c
commit ac571efbbd
31 changed files with 382 additions and 238 deletions

40
core.js
View File

@@ -13,9 +13,9 @@
var undefined;
/** Used as the semantic version number. */
var VERSION = '4.16.1';
var VERSION = '4.16.2';
/** Used as the `TypeError` message for "Functions" methods. */
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to compose bitmasks for function metadata. */
@@ -352,6 +352,30 @@
: new LodashWrapper(value);
}
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} proto The object to inherit from.
* @returns {Object} Returns the new object.
*/
var baseCreate = (function() {
function object() {}
return function(proto) {
if (!isObject(proto)) {
return {};
}
if (objectCreate) {
return objectCreate(proto);
}
object.prototype = prototype;
var result = new object;
object.prototype = undefined;
return result;
};
}());
/**
* The base constructor for creating `lodash` wrapper objects.
*
@@ -419,18 +443,6 @@
object[key] = value;
}
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
function baseCreate(proto) {
return isObject(proto) ? objectCreate(proto) : {};
}
/**
* The base implementation of `_.delay` and `_.defer` which accepts `args`
* to provide to `func`.