Fire draggable.stop event after data attributes have been updated.

This commit is contained in:
Luke Browning
2015-09-18 10:10:17 +01:00
parent 9930ae49a7
commit 73b5712c42
+4 -4
View File
@@ -1586,10 +1586,6 @@
this.$player.coords().grid.row = row; this.$player.coords().grid.row = row;
this.$player.coords().grid.col = col; this.$player.coords().grid.col = col;
if (this.options.draggable.stop) {
this.options.draggable.stop.call(this, event, ui);
}
this.$player.addClass('player-revert').removeClass('player') this.$player.addClass('player-revert').removeClass('player')
.attr({ .attr({
'data-col': col, 'data-col': col,
@@ -1598,6 +1594,10 @@
'left': '', 'left': '',
'top': '' 'top': ''
}); });
if (this.options.draggable.stop) {
this.options.draggable.stop.call(this, event, ui);
}
this.$preview_holder.remove(); this.$preview_holder.remove();