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

Function removeSWF

flash/image/html-template/swfobject.js:474–492  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

472 - Especially needed to safely and completely remove a SWF in Internet Explorer
473 */
474 function removeSWF(id) {
475 var obj = getElementById(id);
476 if (obj && obj.nodeName == "OBJECT") {
477 if (ua.ie && ua.win) {
478 obj.style.display = "none";
479 (function(){
480 if (obj.readyState == 4) {
481 removeObjectInIE(id);
482 }
483 else {
484 setTimeout(arguments.callee, 10);
485 }
486 })();
487 }
488 else {
489 obj.parentNode.removeChild(obj);
490 }
491 }
492 }
493
494 function removeObjectInIE(id) {
495 var obj = getElementById(id);

Callers 1

swfobject.jsFile · 0.70

Calls 2

getElementByIdFunction · 0.70
removeObjectInIEFunction · 0.70

Tested by

no test coverage detected