assets/dashboard/vendor/html5sortable.js
function (sortableElement) {
        var opts = addData(sortableElement, 'opts') || {};
        var items = _filter(sortableElement.children, opts.items);
        var handles = _getHandles(items, opts.handle);
        // remove event handlers & data from sortable
        removeEventListener(sortableElement, 'dragover');
        removeEventListener(sortableElement, 'dragenter');
        removeEventListener(sortableElement, 'drop');
        // remove event data from sortable
        _removeSortableData(sortableElement);
        // remove event handlers & data from items
        removeEventListener(handles, 'mousedown');
        _removeItemEvents(items);
        _removeItemData(items);
    }
function (sortableElement) {
        var opts = addData(sortableElement, 'opts') || {};
        var items = _filter(sortableElement.children, opts.items);
        var handles = _getHandles(items, opts.handle);
        // remove event handlers & data from sortable
        removeEventListener(sortableElement, 'dragover');
        removeEventListener(sortableElement, 'dragenter');
        removeEventListener(sortableElement, 'drop');
        // remove event data from sortable
        _removeSortableData(sortableElement);
        // remove event handlers & data from items
        removeEventListener(handles, 'mousedown');
        _removeItemEvents(items);
        _removeItemData(items);
    }
function ( sortableElement ) { var opts = addData ( sortableElement , 'opts' ) || { } ; var items = _filter ( sortableElement . children , opts . items ) ; var handles = _getHandles ( items , opts . handle ) ; // remove event handlers & data from sortable removeEventListener ( sortableElement , 'dragover' ) ; removeEventListener ( sortableElement , 'dragenter' ) ; removeEventListener ( sortableElement , 'drop' ) ; // remove event data from sortable _removeSortableData ( sortableElement ) ; // remove event handlers & data from items removeEventListener ( handles , 'mousedown' ) ; _removeItemEvents ( items ) ; _removeItemData ( items ) ; }
Destroy the sortable
@param {HTMLElement} sortableElement a single sortable
Destroy the sortable