MCPcopy Index your code
hub / github.com/mailru/FileAPI / callDomLoadFunctions

Function callDomLoadFunctions

flash/image/html-template/swfobject.js:125–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }();
124
125 function callDomLoadFunctions() {
126 if (isDomLoaded) { return; }
127 try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
128 var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
129 t.parentNode.removeChild(t);
130 }
131 catch (e) { return; }
132 isDomLoaded = true;
133 var dl = domLoadFnArr.length;
134 for (var i = 0; i < dl; i++) {
135 domLoadFnArr[i]();
136 }
137 }
138
139 function addDomLoadEvent(fn) {
140 if (isDomLoaded) {

Callers 1

swfobject.jsFile · 0.70

Calls 1

createElementFunction · 0.70

Tested by

no test coverage detected