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 c4b1da4007.
This commit is contained in:
Dave Methvin 2013-01-29 13:03:45 -05:00
parent 0868699ce5
commit aa3c92979a

View File

@ -411,7 +411,8 @@ jQuery.extend({
if ( obj == null ) { if ( obj == null ) {
return String( obj ); 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" : class2type[ core_toString.call(obj) ] || "object" :
typeof obj; typeof obj;
}, },