MCPcopy Create free account
hub / github.com/CreateJS/SoundJS / callDomLoadFunctions

Function callDomLoadFunctions

lib/flashaudioplugin-NEXT.js:158–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }();
157
158 function callDomLoadFunctions() {
159 if (isDomLoaded) { return; }
160 try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
161 var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
162 t.parentNode.removeChild(t);
163 }
164 catch (e) { return; }
165 isDomLoaded = true;
166 var dl = domLoadFnArr.length;
167 for (var i = 0; i < dl; i++) {
168 domLoadFnArr[i]();
169 }
170 }
171
172 function addDomLoadEvent(fn) {
173 if (isDomLoaded) {

Callers 1

Calls 1

createElementFunction · 0.70

Tested by

no test coverage detected