Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13724 closed bug (notabug)

jQuery.isPlainObject() works incorrect

Reported by: [email protected] 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.

see http://jsfiddle.net/golubev/MrDaf/2/

Change History (1)

comment:1 Changed 10 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

new myObject() doesn't produce a plain object, it produces an instance of myObject

Note: See TracTickets for help on using tickets.