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

Function removeSWF

lib/flashaudioplugin-NEXT.js:507–525  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

505 - Especially needed to safely and completely remove a SWF in Internet Explorer
506 */
507 function removeSWF(id) {
508 var obj = getElementById(id);
509 if (obj && obj.nodeName == "OBJECT") {
510 if (ua.ie && ua.win) {
511 obj.style.display = "none";
512 (function(){
513 if (obj.readyState == 4) {
514 removeObjectInIE(id);
515 }
516 else {
517 setTimeout(arguments.callee, 10);
518 }
519 })();
520 }
521 else {
522 obj.parentNode.removeChild(obj);
523 }
524 }
525 }
526
527 function removeObjectInIE(id) {
528 var obj = getElementById(id);

Callers 1

Calls 2

getElementByIdFunction · 0.70
removeObjectInIEFunction · 0.70

Tested by

no test coverage detected