File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ $.fn.sortable = function(options) {
1313 connectWith : false
1414 } , options ) ;
1515 return this . each ( function ( ) {
16- if ( / ^ e n a b l e | d i s a b l e | d e s t r o y $ / . test ( method ) ) {
16+ if ( / ^ ( e n a b l e | d i s a b l e | d e s t r o y ) $ / . test ( method ) ) {
1717 var items = $ ( this ) . children ( $ ( this ) . data ( 'items' ) ) . attr ( 'draggable' , method == 'enable' ) ;
1818 if ( method == 'destroy' ) {
1919 items . add ( this ) . removeData ( 'connectWith items' )
@@ -22,7 +22,7 @@ $.fn.sortable = function(options) {
2222 return ;
2323 }
2424 var isHandle , index , items = $ ( this ) . children ( options . items ) ;
25- var placeholder = $ ( '<' + ( / ^ u l | o l $ / i. test ( this . tagName ) ? 'li' : 'div' ) + ' class="sortable-placeholder">' ) ;
25+ var placeholder = $ ( '<' + ( / ^ ( u l | o l ) $ / i. test ( this . tagName ) ? 'li' : 'div' ) + ' class="sortable-placeholder">' ) ;
2626 items . find ( options . handle ) . mousedown ( function ( ) {
2727 isHandle = true ;
2828 } ) . mouseup ( function ( ) {
You can’t perform that action at this time.
0 commit comments