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

Function find

modular/sortable.core.esm.js:217–230  ·  view source on GitHub ↗
(ctx, tagName, iterator)

Source from the content-addressed store, hash-verified

215 return matrixFn && new matrixFn(appliedTransforms);
216}
217function find(ctx, tagName, iterator) {
218 if (ctx) {
219 var list = ctx.getElementsByTagName(tagName),
220 i = 0,
221 n = list.length;
222 if (iterator) {
223 for (; i < n; i++) {
224 iterator(list[i], i);
225 }
226 }
227 return list;
228 }
229 return [];
230}
231function getWindowScrollingElement() {
232 var scrollingElement = document.scrollingElement;
233 if (scrollingElement) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…