mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
sortable: the options.items callback now receives null as first argument, a limited ui object as the second.
This commit is contained in:
parent
d2b9d56e24
commit
430a0da9f6
@ -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--){
|
||||
|
Loading…
Reference in New Issue
Block a user