Skip to content

Commit 03910df

Browse files
committed
feat(draggable): option to not remove helper on drag stop
1 parent b84f364 commit 03910df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/jquery.draggable.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
handle: null,
1919
container_width: 0, // 0 == auto
2020
move_element: true,
21-
helper: false // or 'clone'
21+
helper: false, // or 'clone'
22+
remove_helper: true
2223
// drag: function(e) {},
2324
// start : function(e, ui) {},
2425
// stop : function(e) {}
@@ -346,7 +347,7 @@
346347
this.options.stop.call(this.$player, e, data);
347348
}
348349

349-
if (this.helper) {
350+
if (this.helper && this.options.remove_helper) {
350351
this.$helper.remove();
351352
}
352353

0 commit comments

Comments
 (0)