File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 144144 this . dispose ( )
145145 }
146146
147+ // External solution for group persistence
148+ // See https://github.com/johnny/jquery-sortable/pull/122
149+ Sortable . prototype . destroyGroup = function ( ) {
150+ var jqSortable = this . $el . data ( 'jqSortable' )
151+ if ( jqSortable . group ) {
152+ jqSortable . group . _destroy ( )
153+ }
154+ }
155+
147156 Sortable . DEFAULTS = {
148157 useAnimation : false ,
149158 usePlaceholderClone : false ,
Original file line number Diff line number Diff line change 631631 return val != that
632632 } )
633633
634- // See https://github.com/johnny/jquery-sortable/pull/122
635- if ( this . group )
636- this . group . _destroy ( )
637-
638634 $ . each ( this . items || [ ] , function ( ) {
639635 $ . removeData ( this , subContainerKey )
640636 } )
You can’t perform that action at this time.
0 commit comments