File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 474
474
* @param {Object } A prepared ui object.
475
475
*/
476
476
fn . on_drag = function ( event , ui ) {
477
+ //break if dragstop has been fired
478
+ if ( this . $player === null ) {
479
+ return false ;
480
+ } ;
481
+
477
482
var abs_offset = {
478
483
left : ui . position . left + this . baseX ,
479
484
top : ui . position . top + this . baseY
548
553
this . $player . coords ( ) . grid . row = this . placeholder_grid_data . row ;
549
554
this . $player . coords ( ) . grid . col = this . placeholder_grid_data . col ;
550
555
551
- this . $player = null ;
556
+ if ( this . options . draggable . stop ) {
557
+ this . options . draggable . stop . call ( this , event , ui ) ;
558
+ }
552
559
553
560
this . $preview_holder . remove ( ) ;
561
+ this . $player = null ;
554
562
555
563
this . set_dom_grid_height ( ) ;
556
-
557
- if ( this . options . draggable . stop ) {
558
- this . options . draggable . stop . call ( this , event , ui ) ;
559
- }
560
564
} ;
561
565
562
566
You can’t perform that action at this time.
0 commit comments