From aa3c92979a723cd972bf37c766c3b4a63cc23fdb Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 29 Jan 2013 13:03:45 -0500 Subject: [PATCH] Revert "Fix #13291, no longer need the functionish-regex guard." Turns out this is still needed by Safari 5.1, which we're still supporting. This reverts commit c4b1da40075532e4f14821b1519ae0ef6665bf1e. --- src/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index c2dc4bc9b..2bea61e3b 100644 --- a/src/core.js +++ b/src/core.js @@ -411,7 +411,8 @@ jQuery.extend({ if ( obj == null ) { return String( obj ); } - return typeof obj === "object" ? + // Support: Safari <5.1 (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? class2type[ core_toString.call(obj) ] || "object" : typeof obj; }, -- 2.39.5