aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2013-03-19 16:53:35 +0100
commit90135b27f896506776f3ce9fdbd27c9e957b924a (patch)
tree11591919e5083e81b8288cb979eca7fbdf3e3dd6 /ui/jquery.ui.draggable.js
parent4fce29e9356d7cbe2ccbdc29a391603580e852de (diff)
downloadjquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.tar.gz
jquery-ui-90135b27f896506776f3ce9fdbd27c9e957b924a.zip
Widget tests: Use instance method. Also replace a few instances of $.data in widget implementations.
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index a16b022d7..e5fc069b9 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -567,7 +567,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
uiSortable = $.extend({}, ui, { item: inst.element });
inst.sortables = [];
$(o.connectToSortable).each(function() {
- var sortable = $.data(this, "ui-sortable");
+ var sortable = $( this ).sortable( "instance" );
if (sortable && !sortable.options.disabled) {
inst.sortables.push({
instance: sortable,