diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-19 08:00:38 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-19 08:00:38 +0000 |
commit | 430a0da9f64a019ff5634a1111472cde3a53822f (patch) | |
tree | d30b6c7335d35e7cb6b23d161030aaf1e240ddf2 /ui | |
parent | d2b9d56e2432bd7d98da3333738c0cec08e7db9e (diff) | |
download | jquery-ui-430a0da9f64a019ff5634a1111472cde3a53822f.tar.gz jquery-ui-430a0da9f64a019ff5634a1111472cde3a53822f.zip |
sortable: the options.items callback now receives null as first argument, a limited ui object as the second.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.sortable.js | 2 |
1 files changed, 1 insertions, 1 deletions
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--){ |