Bump to v4.14.0.

This commit is contained in:
John-David Dalton
2016-07-24 09:52:04 -07:00
parent 2ab869e88a
commit edb45df54b
219 changed files with 1852 additions and 1345 deletions

View File

@@ -1,4 +1,4 @@
define(['./_arrayEach', './_baseFlatten', './bind', './rest', './_toKey'], function(arrayEach, baseFlatten, bind, rest, toKey) {
define(['./_arrayEach', './_baseFlatten', './_baseRest', './bind', './_toKey'], function(arrayEach, baseFlatten, baseRest, bind, toKey) {
/**
* Binds methods of an object to the object itself, overwriting the existing
@@ -17,16 +17,16 @@ define(['./_arrayEach', './_baseFlatten', './bind', './rest', './_toKey'], funct
*
* 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);