Bump to v4.1.1.

This commit is contained in:
John-David Dalton
2016-02-02 23:12:34 -08:00
parent dcf84f0e62
commit afaae9f972
588 changed files with 4999 additions and 11596 deletions

View File

@@ -1,4 +1,4 @@
# lodash.bindkey v4.1.0
# lodash.bindkey v4.1.1
The [lodash](https://lodash.com/) method `_.bindKey` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var bindKey = require('lodash.bindkey');
```
See the [documentation](https://lodash.com/docs#bindKey) or [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash.bindkey) for more details.
See the [documentation](https://lodash.com/docs#bindKey) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.bindkey) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.1.0 (Custom Build) <https://lodash.com/>
* lodash 4.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -33,7 +33,8 @@ function replaceHolders(array, placeholder) {
result = [];
while (++index < length) {
if (array[index] === placeholder) {
var value = array[index];
if (value === placeholder || value === PLACEHOLDER) {
array[index] = PLACEHOLDER;
result[++resIndex] = index;
}
@@ -41,6 +42,18 @@ function replaceHolders(array, placeholder) {
return result;
}
/**
* Gets the argument placeholder value for `func`.
*
* @private
* @param {Function} func The function to inspect.
* @returns {*} Returns the placeholder value.
*/
function getPlaceholder(func) {
var object = func;
return object.placeholder;
}
/**
* Creates a function that invokes the method at `object[key]` and prepends
* any additional `_.bindKey` arguments to those provided to the bound function.
@@ -88,9 +101,7 @@ function replaceHolders(array, placeholder) {
var bindKey = rest(function(object, key, partials) {
var bitmask = BIND_FLAG | BIND_KEY_FLAG;
if (partials.length) {
var placeholder = bindKey.placeholder,
holders = replaceHolders(partials, placeholder);
var holders = replaceHolders(partials, getPlaceholder(bindKey));
bitmask |= PARTIAL_FLAG;
}
return createWrapper(key, bitmask, object, partials, holders);

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.bindkey",
"version": "4.1.0",
"version": "4.1.1",
"description": "The lodash method `_.bindKey` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",