Bug Tracker

Modify

Ticket #2600 (closed bug: fixed)

Opened 6 years ago

Last modified 2 weeks ago

jQuery.extend() should not ignore properties with null values

Reported by: scott.gonzalez Owned by:
Priority: major Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

jQuery.extend() currently ignores properties with a value of null or undefined; only undefined should be ignored.

Change History

comment:1 Changed 6 years ago by scott.gonzal

This behavior was introduced in [2783].

comment:2 Changed 6 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [5385].

comment:3 Changed 2 weeks ago by tborychowski@…

Please update the documentation for "extend" to reflect that change. (I spent hours debugging that today, as I assumed that "null" values are ignored - as the documentation states!)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.