MCPcopy Index your code
hub / github.com/SortableJS/Sortable / select

Function select

plugins/MultiDrag/MultiDrag.js:532–541  ·  view source on GitHub ↗

* Selects the provided multi-drag item * @param {HTMLElement} el The element to be selected

(el)

Source from the content-addressed store, hash-verified

530 * @param {HTMLElement} el The element to be selected
531 */
532 select(el) {
533 let sortable = el.parentNode[expando];
534 if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;
535 if (multiDragSortable && multiDragSortable !== sortable) {
536 multiDragSortable.multiDrag._deselectMultiDrag();
537 multiDragSortable = sortable;
538 }
539 toggleClass(el, sortable.options.selectedClass, true);
540 multiDragElements.push(el);
541 },
542 /**
543 * Deselects the provided multi-drag item
544 * @param {HTMLElement} el The element to be deselected

Callers

nothing calls this directly

Calls 1

toggleClassFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…