Uncaught TypeError: Object # has no method 'find'

Uncaught TypeError: Object # has no method 'find'

roncemerroncemer Posts: 4Questions: 0Answers: 0
edited June 2012 in Bug reports
Under certain circumstances, with jQuery 1.7.2 and DataTables 1.9.1, the following error occurs:

Uncaught TypeError: Object # has no method 'find'

The fix is simple. In jquery.dataTables.js, line 11519, change this:
$('span:eq(0)', an[i])
to this:
$('span:eq(0)', $(an[i]))

Please make this change and release a new version of DataTables. This is breaking a lot of apps which worked with previous versions of DataTables.


Thanks!
Ron Cemer
http://www.roncemer.com

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi Ron,

    Thanks very much for letting me know about this.

    Can you link me to a test case showing this issue so I can include it in the unit tests and verify the problem/fix?

    Many thanks,
    Allan
  • tgmwebtgmweb Posts: 1Questions: 0Answers: 0
    I can confirm I had the same issue, and Ron's fixed resolved it.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    @tgmweb - could you possibly link me to a page that shows the error, so I can put the fix into the core?

    Allan
This discussion has been closed.