MCPcopy
hub / github.com/greensock/GSAP / _insertNodeBefore

Function _insertNodeBefore

esm/SplitText.js:44–44  ·  view source on GitHub ↗
(newChild, parent, existingChild)

Source from the content-addressed store, hash-verified

42 }
43 return collection;
44}, _disallowInline = (element) => window.getComputedStyle(element).display === "inline" && (element.style.display = "inline-block"), _insertNodeBefore = (newChild, parent, existingChild) => parent.insertBefore(typeof newChild === "string" ? document.createTextNode(newChild) : newChild, existingChild), _getWrapper = (type, config, collection) => {
45 let className = config[type + "sClass"] || "", { tag = "div", aria = "auto", propIndex = false } = config, display = type === "line" ? "block" : "inline-block", incrementClass = className.indexOf("++") > -1, wrapper = (text) => {
46 let el = document.createElement(tag), i = collection.length + 1;
47 className && (el.className = className + (incrementClass ? " " + className + i : ""));

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…