MCPcopy Index your code
hub / github.com/shipshapecode/tether / initialize

Function initialize

src/js/tether.js:778–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

776
777Tether.modules.push({
778 initialize() {
779 const { classes, classPrefix } = this.options;
780 this.markers = {};
781
782 ['target', 'element'].forEach((type) => {
783 const el = document.createElement('div');
784 el.className = getClass(`${type}-marker`, classes, classPrefix);
785
786 const dot = document.createElement('div');
787 dot.className = getClass('marker-dot', classes, classPrefix);
788 el.appendChild(dot);
789
790 this[type].appendChild(el);
791
792 this.markers[type] = { dot, el };
793 });
794 },
795
796 destroy() {
797 ['target', 'element'].forEach((type) => {

Callers

nothing calls this directly

Calls 1

getClassFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…