rem: var n = this.editObjectN; var t = this.Map.tilelayers[n]; 
add: var n_i = this.editObjectN; var s_i = this._setIndexRef; if ( n_i != null){  t = this.Map.tilelayers[n_i]; }else{ n_i = this.Map.tilelayers.length; t = this.Map.tilelayers[n_i] = {}; } 
context: 	"updateTilelayer": function(rslt){	    var xml = rslt.responseXML;		//the marker data we are changing		var n = this.editObjectN;		var t = this.Map.tilelayers[n];		//add the xml data to the marker record		this.parseTilelayerXML(t, xml);		t.maptype_id = this.editSetId;		var s;		var mts = this.Map.maptypes;		for(a=0; a<mts.length; a++){			if ( ( mts[a] != null ) && ( mts[a].maptype_id == this.editSetId ) ){				s = a;				break;			}		};				//remove the related maptype		//re-add the maptype		/*  *******  */		// probably needs a ref to parent maptype		/*  *******  */		//add the tilelayer		//this.Map.addTilelayer(n);				this.hideSpinner("DONE!");		// update the maptypes menus		this.editMaptypeTilelayers(s);		this.editTilelayer(n,s);	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/abb148cb64f85492613e3474ce4942a26489ad33/Edit.js/buggy/templates/Edit.js