jquery-sortable
jquery-sortable copied to clipboard
group error since v0.9.13
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
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,
update for for v0.9.12 -> v0.9.13 https://github.com/ycatch/SoraMame.Block
Thanks