Opened 10 years ago
Closed 10 years ago
#13724 closed bug (notabug)
jQuery.isPlainObject() works incorrect
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Method returns TRUE only for JSON-objects and returns FALSE for objects created as "new myObject()". But method $.isEmptyObject() works correct with both types of objects.
Note: See
TracTickets for help on using
tickets.
new myObject()
doesn't produce a plain object, it produces an instance ofmyObject