Bug Tracker

Ticket #2600 (closed bug: fixed)

Opened 7 years ago

Last modified 8 months 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 7 years ago by scott.gonzal

This behavior was introduced in [2783].

comment:2 Changed 7 years ago by scott.gonzal

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

Fixed in [5385].

comment:3 Changed 8 months 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!)

Note: See TracTickets for help on using tickets.