Skip to content

Commit

Permalink
Merge pull request jashkenas#619 from braddunbar/invoke
Browse files Browse the repository at this point in the history
Remove unnecessary code as per jashkenas#618.
  • Loading branch information
braddunbar committed May 26, 2012
2 parents 99d1023 + 03a8b0b commit 7229edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
_.invoke = function(obj, method) {
var args = slice.call(arguments, 2);
return _.map(obj, function(value) {
return (_.isFunction(method) ? method || value : value[method]).apply(value, args);
return (_.isFunction(method) ? method : value[method]).apply(value, args);
});
};

Expand Down

0 comments on commit 7229edc

Please sign in to comment.