Skip to content

Commit

Permalink
trying to avoid obj.callee (strict mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Dec 21, 2010
1 parent b3a373a commit fad002d
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 @@ -595,7 +595,7 @@

// Is a given variable an arguments object?
_.isArguments = function(obj) {
return !!(obj && obj.callee);
return !!(obj && hasOwnProperty.call(obj, 'callee'));
};

// Is a given value a function?
Expand Down

0 comments on commit fad002d

Please sign in to comment.