Bug Tracker

Changes between Initial Version and Version 4 of Ticket #10266


Ignore:
Timestamp:
Sep 13, 2011, 8:53:32 PM (9 years ago)
Author:
Rick Waldron
Comment:

-1 This request has been made before for other methods and we've argued the color of the explicit undefined parameter bikeshed plenty of times.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10266

    • Property Priority changed from undecided to low
    • Property Component changed from unfiled to data
  • Ticket #10266 – Description

    initial v4  
    11Example here:
    2 http://jsfiddle.net/jsoverson/E25eF/4/
     2
    33
    44The problem occurs when jquery tests for definedness of the passed value. If it is undefined the logic assumes you want the value of the key, which is likely not the assumption a user makes when they pass in two arguments. The problem experienced here is largest during chaining where the returned value breaks the rest of the chain.
    55
    6 This issue is also what likely triggered ticket http://bugs.jquery.com/ticket/9977 but that ticket was closed prematurely due to the inability to reproduce.
     6This issue is also what likely triggered ticket but that ticket was closed prematurely due to the inability to reproduce.
    77