Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7413 closed bug (invalid)

Browser inconsistencies return of jQuery.isEmptyObject

Reported by: rfernandes@… Owned by: Rick Waldron
Priority: low Milestone: 1.next
Component: core Version: 1.6b1
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by snover)

  • Firefox 3.6 (and 4b7) returns:

jQuery.isEmptyObject("test") // false

  • IE7 returns:

jQuery.isEmptyObject("test") // true

Did not test other browsers or versions but can test if requested

As normal IE is the suspect here...

Change History (13)

comment:1 Changed 6 years ago by Rick Waldron

Owner: set to Rick Waldron
Status: newassigned

Confirmed!

comment:3 Changed 6 years ago by snover

Description: modified (diff)

comment:5 Changed 6 years ago by john

Milestone: 1.51.4.5
Owner: changed from Rick Waldron to john

Let's tackle this in 1.4.5 and use hasOwnProperty.

comment:6 Changed 6 years ago by john

Component: unfiledcore
Priority: undecidedlow
Resolution: fixed
Status: assignedclosed
Version: 1.4.31.4.4

Landed.

comment:7 Changed 6 years ago by john

Resolution: fixed
Status: closedreopened

The patch causing problems in jQuery.param, backed out.

comment:8 Changed 6 years ago by snover

Owner: changed from john to Rick Waldron
Status: reopenedassigned

comment:9 Changed 6 years ago by dmethvin

Milestone: 1.4.51.5

comment:10 Changed 6 years ago by timmywil

Milestone: 1.6
Version: 1.4.41.6b1

Confirmed this bug is still present in 1.6b1. http://jsfiddle.net/timmywil/Q9nUZ/

comment:11 Changed 6 years ago by john

Milestone: 1.61.next

comment:13 Changed 6 years ago by Rick Waldron

Keywords: needsdocs added
Resolution: invalid
Status: assignedclosed

Best patch ever === no patch at all.

comment:14 Changed 6 years ago by addyosmani

Keywords: needsdocs removed

Docs updated to emphasize $.isEmptyObject should always be called with a real object.

Note: See TracTickets for help on using tickets.