Search and Top Navigation
#4260 closed bug (worksforme)
Opened March 02, 2009 02:25PM UTC
Closed August 22, 2009 01:52PM UTC
Jquery UI Docs are wrong about "connectWith"
Reported by: | aquadrop | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8 |
Component: | ui.sortable | Version: | 1.6rc6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi, here (http://docs.jquery.com/UI/API/1.7/Sortable) the reported syntax for the ''connectWith'' option is:
$('.selector').sortable({ connectWith: '.otherlist' });
but if used, it does not work and causes an unhandled exception.
The right syntax is
$('.selector').sortable({ connectWith: '''$('.otherlist')''' });
Attachments (0)
Change History (3)
Changed May 07, 2009 12:59PM UTC by comment:1
milestone: | TBD → 1.7.2 |
---|---|
type: | feature → bug |
Changed May 07, 2009 01:24PM UTC by comment:2
milestone: | 1.7.2 → 1.8 |
---|
Changed August 22, 2009 01:52PM UTC by comment:3
resolution: | → worksforme |
---|---|
status: | new → closed |
I can't confirm this - our own demos actually use this notation and it all works fine.
The option should accept anything the jQuery-object accepts (String, DOM Element), accepting only a jQuery object is a bug.