jquery-sortable icon indicating copy to clipboard operation
jquery-sortable copied to clipboard

group error since v0.9.13

Open plasid opened this issue 9 years ago • 3 comments

From your examples I used this guys code https://github.com/ycatch/SoraMame.Block with newer jquery-sortable.js v0.9.13 and get the error Uncaught TypeError: Cannot read property 'group' of undefined line 104.

I then switch back to the (older) and same version as used by SoraMame, jquery-sortable.js v0.9.12 and the error is gone

plasid avatar Aug 14 '15 03:08 plasid

Hi, stealthbomb thanks for your issue.

I made another example. https://github.com/ycatch/mameblock.js . I changed this example for v0.9.12 -> v0.9.13 .

    $('ol.pallet-code').sortable({
        group: 'connect-area',
        drop: false,
-       onDragStart: function (item, container, _super) {
+       onDragStart: function ($item, container, _super) { //2015.07.06 update for jquery sortable v0.9.13
            // Duplicate items of the no drop area
            if(!container.options.drop) {
-               item.clone(true).insertAfter(item)
+               $item.clone().insertAfter($item);
            }
-               _super(item);
-           },
+               _super($item, container);
+           }
    });

regrads,

ycatch avatar Aug 15 '15 23:08 ycatch

update for for v0.9.12 -> v0.9.13 https://github.com/ycatch/SoraMame.Block

ycatch avatar Aug 15 '15 23:08 ycatch

Thanks

plasid avatar Dec 23 '15 15:12 plasid