Keloran
public javascript v1 · immutablefunction 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