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 144
144
this . dispose ( )
145
145
}
146
146
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
+
147
156
Sortable . DEFAULTS = {
148
157
useAnimation : false ,
149
158
usePlaceholderClone : false ,
Original file line number Diff line number Diff line change 631
631
return val != that
632
632
} )
633
633
634
- // See https://github.com/johnny/jquery-sortable/pull/122
635
- if ( this . group )
636
- this . group . _destroy ( )
637
-
638
634
$ . each ( this . items || [ ] , function ( ) {
639
635
$ . removeData ( this , subContainerKey )
640
636
} )
You can’t perform that action at this time.
0 commit comments