aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-19 08:00:38 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-19 08:00:38 +0000
commit430a0da9f64a019ff5634a1111472cde3a53822f (patch)
treed30b6c7335d35e7cb6b23d161030aaf1e240ddf2 /ui
parentd2b9d56e2432bd7d98da3333738c0cec08e7db9e (diff)
downloadjquery-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.js2
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--){