]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable: the options.items callback now receives null as first argument, a limited...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 19 Jun 2008 08:00:38 +0000 (08:00 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 19 Jun 2008 08:00:38 +0000 (08:00 +0000)
ui/ui.sortable.js

index 68bac5ab2fa38bda3962d291940338ad59f9e5f1..c3ce88ef29417305d226f7dff6b10a174c644d8d 100644 (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--){