Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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 c4b1da4.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -411,7 +411,8 @@ jQuery.extend({ | ||
if ( obj == null ) { | ||
return String( obj ); | ||
} | ||
return typeof obj === "object" ? | ||
// Support: Safari <5.1 (functionish RegExp) | ||
This comment has been minimized.
This comment has been minimized.
dmethvin
Author
Member
|
||
return typeof obj === "object" || typeof obj === "function" ? | ||
class2type[ core_toString.call(obj) ] || "object" : | ||
typeof obj; | ||
}, | ||
Commit message says Safari 5.1, comment says Safari <5.1 (not <= 5.1). Which one is correct?