From b2280b2d728ba587387b64affda1cc66e446c48d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 2 Jun 2014 09:29:16 -0700 Subject: [PATCH] Fixed `_.keys` in Safari 5.0.5. --- lodash.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 8ce21c526..d7e3780ba 100644 --- a/lodash.js +++ b/lodash.js @@ -6954,8 +6954,9 @@ var Ctor = object && object.constructor, length = object ? object.length : 0; - if ((typeof length == 'number' && length > 0) || - (Ctor && object === Ctor.prototype)) { + if ((Ctor && object === Ctor.prototype) || + (typeof length == 'number' && length > 0) || + (support.enumPrototypes && typeof object == 'function')) { return shimKeys(object); } return isObject(object) ? nativeKeys(object) : [];