aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.js3
1 files changed, 2 insertions, 1 deletions
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;
},