trying to avoid obj.callee (strict mode)

This commit is contained in:
Jeremy Ashkenas
2010-12-21 00:26:25 -05:00
parent b3a373a716
commit fad002de53

View File

@@ -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?