diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-29 18:36:55 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-29 18:36:55 +0000 |
commit | 3b92895a7e5b89815e66a051d432cdf67f6646cc (patch) | |
tree | 535ba05de7155837b65536a474404da78b41abb7 /ui/ui.draggable.js | |
parent | d18d1a2d6825cb4d3dc9fb477b41204fac46b13c (diff) | |
download | jquery-ui-3b92895a7e5b89815e66a051d432cdf67f6646cc.tar.gz jquery-ui-3b92895a7e5b89815e66a051d432cdf67f6646cc.zip |
draggable: connectToSortable couldn't accept strings (fixes #3984)
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r-- | ui/ui.draggable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 199de6152..e8524679b 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -436,7 +436,7 @@ $.ui.plugin.add("draggable", "connectToSortable", { $(o.connectToSortable).each(function() { // 'this' points to a string, and should therefore resolved as query, but instead, if the string is assigned to a variable, it loops through the strings properties, // so we have to append '' to make it anonymous again - $(this+'').each(function() { + $(typeof this == 'string' ? this+'': this).each(function() { if($.data(this, 'sortable')) { var sortable = $.data(this, 'sortable'); inst.sortables.push({ |