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

Function addDomLoadEvent

lib/flashaudioplugin-NEXT.js:172–179  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

170 }
171
172 function addDomLoadEvent(fn) {
173 if (isDomLoaded) {
174 fn();
175 }
176 else {
177 domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
178 }
179 }
180
181 /* Cross-browser onload
182 - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected