Bump to v3.8.0.

This commit is contained in:
jdalton
2015-04-19 09:18:54 -07:00
parent 863bb301bb
commit 53c14e5b9b
58 changed files with 538 additions and 405 deletions

View File

@@ -1,5 +1,7 @@
var baseCallback = require('../internal/baseCallback'),
isIterateeCall = require('../internal/isIterateeCall');
isIterateeCall = require('../internal/isIterateeCall'),
isObjectLike = require('../internal/isObjectLike'),
matches = require('./matches');
/**
* Creates a function that invokes `func` with the `this` binding of `thisArg`
@@ -43,7 +45,9 @@ function callback(func, thisArg, guard) {
if (guard && isIterateeCall(func, thisArg, guard)) {
thisArg = null;
}
return baseCallback(func, thisArg);
return isObjectLike(func)
? matches(func)
: baseCallback(func, thisArg);
}
module.exports = callback;

View File

@@ -25,7 +25,7 @@ var invokePath = require('../internal/invokePath'),
var method = restParam(function(path, args) {
return function(object) {
return invokePath(object, path, args);
}
};
});
module.exports = method;