Bump to v4.14.0.

This commit is contained in:
John-David Dalton
2016-07-24 09:52:22 -07:00
parent 6b3e0da93c
commit 51ed7e7707
231 changed files with 1136 additions and 820 deletions

View File

@@ -1,7 +1,7 @@
import arrayEach from './_arrayEach.js';
import baseFlatten from './_baseFlatten.js';
import baseRest from './_baseRest.js';
import bind from './bind.js';
import rest from './rest.js';
import toKey from './_toKey.js';
/**
@@ -21,16 +21,16 @@ import toKey from './_toKey.js';
*
* var view = {
* 'label': 'docs',
* 'onClick': function() {
* 'click': function() {
* console.log('clicked ' + this.label);
* }
* };
*
* _.bindAll(view, ['onClick']);
* jQuery(element).on('click', view.onClick);
* _.bindAll(view, ['click']);
* jQuery(element).on('click', view.click);
* // => Logs 'clicked docs' when clicked.
*/
var bindAll = rest(function(object, methodNames) {
var bindAll = baseRest(function(object, methodNames) {
arrayEach(baseFlatten(methodNames, 1), function(key) {
key = toKey(key);
object[key] = bind(object[key], object);