Opened 14 years ago

Closed 14 years ago

#4260 closed bug (worksforme)

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')''' });

Change History (3)

comment:1 Changed 14 years ago by Jörn Zaefferer

Milestone: TBD1.7.2
Type: featurebug

The option should accept anything the jQuery-object accepts (String, DOM Element), accepting only a jQuery object is a bug.

comment:2 Changed 14 years ago by Jörn Zaefferer

Milestone: 1.7.21.8

comment:3 Changed 14 years ago by paul

Resolution: worksforme
Status: newclosed

I can't confirm this - our own demos actually use this notation and it all works fine.

Note: See TracTickets for help on using tickets.