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

Function clone

modular/sortable.core.esm.js:495–505  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

493 el.scrollTop += y;
494}
495function clone(el) {
496 var Polymer = window.Polymer;
497 var $ = window.jQuery || window.Zepto;
498 if (Polymer && Polymer.dom) {
499 return Polymer.dom(el).cloneNode(true);
500 } else if ($) {
501 return $(el).clone(true)[0];
502 } else {
503 return el.cloneNode(true);
504 }
505}
506function setRect(el, rect) {
507 css(el, 'position', 'absolute');
508 css(el, 'top', rect.top);

Callers 2

MultiDragPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…