From fad002de5355f6788f3c300e97942b6799c9759d Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 21 Dec 2010 00:26:25 -0500 Subject: [PATCH] trying to avoid obj.callee (strict mode) --- underscore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore.js b/underscore.js index 163268888..9dfb2ad96 100644 --- a/underscore.js +++ b/underscore.js @@ -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?