Skip to content
Permalink
Browse files

draggable: sortable.refreshItems got renamed to _refreshItems

  • Loading branch information
jzaefferer committed Sep 3, 2008
1 parent b59354a commit 6174fef86fa61c86381283361364d2242b94e739
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/ui.draggable.js
@@ -469,13 +469,14 @@ $.ui.plugin.add("draggable", "connectToSortable", {
var inst = $(this).data("draggable");
inst.sortables = [];
$(ui.options.connectToSortable).each(function() {
console.log($.data(this, 'sortable'));
if($.data(this, 'sortable')) {
var sortable = $.data(this, 'sortable');
inst.sortables.push({
instance: sortable,
shouldRevert: sortable.options.revert
});
sortable.refreshItems(); //Do a one-time refresh at start to refresh the containerCache
sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
sortable._propagate("activate", e, inst);
}
});

0 comments on commit 6174fef

Please sign in to comment.
You can’t perform that action at this time.