All pastes #180376 Raw Edit

Keloran

public javascript v1 · immutable
#180376 ·published 2006-09-23 02:38 UTC
rendered paste body
function destroySpinny(elemId, timeDelay){	var docRoot = xGetElementById(elemId);	var spinny = xGetElementById(docRoot.id + "spinny");	if(typeof(spinny) != "undefined" || typeof(spinny) != null) {		if(typeof(timeDelay) != "undefined") {			setTimeout(docRoot.removeChild(docRoot.firstChild), timeDelay);		} else {			if(docRoot.firstChild.id == spinny.id) {				docRoot.removeChild(docRoot.firstChild);			}		}	}}yet after the 2nd loop it bugs out saying, spinny has no properties