Search and Top Navigation
#4009 closed bug (fixed)
Opened January 30, 2009 06:18PM UTC
Closed February 05, 2009 04:21AM UTC
connectToSortable doesn't contain ui.item in callbacks
Reported by: | natecavanaugh | Owned by: | scottgonzalez |
---|---|---|---|
Priority: | blocker | Milestone: | 1.7 |
Component: | ui.sortable | Version: | 1.6rc6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you try to use the connectToSortable, callbacks registered to an event, such as receive or activate do not contain the ui.item element.
You can test this with the following code in tests/visual/sortable/sortable_massive_scale.html
$(function() {
var uls = $('ul').not(".draggable");
uls.sortable({ items: "li", connectWith: [uls], });
$("ul.draggable li").draggable({ helper: "clone", connectToSortable: "ul"});
uls.bind('sortablereceive', function(event, ui) {
console.log('sortablereceive', this, arguments, ui.item);
});
});
Attachments (0)
Change History (5)
Changed January 31, 2009 12:22AM UTC by comment:1
Changed January 31, 2009 02:04AM UTC by comment:2
milestone: | TBD → 1.6 |
---|---|
priority: | critical → blocker |
Changed February 05, 2009 04:05AM UTC by comment:3
owner: | → scott.gonzalez |
---|---|
status: | new → accepted |
Changed February 05, 2009 04:13AM UTC by comment:4
Receive event fixed in r1999.
Changed February 05, 2009 04:21AM UTC by comment:5
resolution: | → fixed |
---|---|
status: | accepted → closed |
Should be fixed in r2000.
confirmed.
this is a blocker imo.