Skip to content

Commit

Permalink
Remove unnecessary code as per jashkenas#618.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed May 26, 2012
1 parent 99d1023 commit 03a8b0b
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 03a8b0b

Please sign in to comment.