Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
17 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -427,9 +427,12 @@ jQuery.extend({ | ||
}, | ||
|
||
type: function( obj ) { | ||
return obj == null ? | ||
String( obj ) : | ||
class2type[ core_toString.call(obj) ] || "object"; | ||
if ( obj == null ) { | ||
return String( obj ); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
} | ||
return typeof obj === "object" || typeof obj === "function" ? | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mikesherov
Member
|
||
class2type[ core_toString.call(obj) ] || "object" : | ||
typeof obj; | ||
}, | ||
|
||
isPlainObject: function( obj ) { | ||
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
@dmethvin I missed this before, but we'd probably get better compression out of
obj + ""
.