From 430a0da9f64a019ff5634a1111472cde3a53822f Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Thu, 19 Jun 2008 08:00:38 +0000 Subject: [PATCH] sortable: the options.items callback now receives null as first argument, a limited ui object as the second. --- ui/ui.sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 68bac5ab2..c3ce88ef2 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -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--){ -- 2.39.5