Bug Tracker

Changes between Initial Version and Version 1 of Ticket #7577, comment 1


Ignore:
Timestamp:
Nov 19, 2010, 4:20:34 PM (11 years ago)
Author:
jitter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7577, comment 1

    initial v1  
    33After looking into this I determined that passing `undefined` to `find()` isn't a valid thing to do (besides not making much sense). The [http://api.jquery.com/find/ find API doc] states
    44> ... the selector expression is required in a call to .find()
     5
     6If you have an application where you can prevent such things from happening (e.g. you don't control what gets passed to find()) you can use something like
     7
     8`.find(a.foo || "")` to always have a valid selector.