Skip to content

Commit 47da2b9

Browse files
committed
Simplifying the code.
1 parent 3aa5272 commit 47da2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jQuery.fn.sortable = function() {
1818
if (!dragging) return true;
1919
e.preventDefault();
2020
e.originalEvent.dataTransfer.dropEffect = 'move';
21-
if (this !== placeholder[0] && this !== placeholder.parent()[0]) {
21+
if (items.is(this)) {
2222
dragging.hide();
2323
$(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);
2424
}

0 commit comments

Comments
 (0)