All pastes #570833 Raw Edit

Mine

public javascript v1 · immutable
·published 2007-06-16 22:04 UTC
rendered paste body
Directory.prototype.getChild = function (id,js_suck){	if (!requestIDChild[this.id])	requestIDChild[this.id] = 1;	else	requestIDChild[this.id]++;		js_suck = (!isset(js_suck)) ? 0 : js_suck;		if (this.id == id)	return this;		if (!this.hasChild())	return false;		eval("for (_c" + js_suck + "=0;_c" + js_suck + "<this.child.length;_c" + js_suck + "++)" +	"{" +	"	if (this.child[_c" + js_suck + "].id == id)" +	"	{" +	"		return this.child[_c" + js_suck + "];" +	"	}" +	"	" +	"	if (this.child[_c" + js_suck + "].hasChild())" +	"	{" +	"		recur = this.child[_c" + js_suck + "].getChild(id," + (js_suck+1) + ");" +	"		" +	"		if (recur != false)" +	"		return recur;" +	"	}" +	"}");		return false;}