sortable: the options.items callback now receives null as first argument, a limited ui object as the second.

This commit is contained in:
Paul Bakaus 2008-06-19 08:00:38 +00:00
parent d2b9d56e24
commit 430a0da9f6

View File

@ -151,7 +151,7 @@ $.widget("ui.sortable", $.extend($.ui.mouse, {
this.items = [];
this.containers = [this];
var items = this.items;
var queries = [$.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)];
var queries = [$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element)];
if(this.options.connectWith) {
for (var i = this.options.connectWith.length - 1; i >= 0; i--){