Modify ↓
Ticket #11411 (closed bug: duplicate)
jQuery.extend may not work well, when a boolean value is not specified at the first argument.
| Reported by: | turbo@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.6.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In jQuery 1.6.4, jQuery.extend may not work well, when a boolean value is not specified at the first argument.
1) jQuery.extend(target, obj1) 2) jQuery.extend(false, target, obj1)
I expect the same object will be returned both 1) and 2). But 1) and 2) sometimes return the dirrent objects.
| {}". When argument[0] value is false, target is set to {}. |
| {};" and "i = 2;" at line 336-338 will not be processed, because "if ( typeof target === "boolean" )" at line 334 will not be true. |
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Duplicate of #10867.