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

Function clone

Sortable.js:501–511  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 2

Sortable.jsFile · 0.70
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…