feat(draggable): option to not remove helper on drag stop

This commit is contained in:
vieron
2014-03-13 00:11:29 +01:00
parent b84f364d4a
commit 03910df967

View File

@ -18,7 +18,8 @@
handle: null,
container_width: 0, // 0 == auto
move_element: true,
helper: false // or 'clone'
helper: false, // or 'clone'
remove_helper: true
// drag: function(e) {},
// start : function(e, ui) {},
// stop : function(e) {}
@ -346,7 +347,7 @@
this.options.stop.call(this.$player, e, data);
}
if (this.helper) {
if (this.helper && this.options.remove_helper) {
this.$helper.remove();
}