rem: removeTab: function(tab) { var t = this._tabify(tab); var id = t.tab_id; Element.remove(t.page); Element.remove(t); new_tabs = $H(); this.tabs.each( function(pair) { if (pair.key != id) new_tabs[pair.key] = pair.value; } ); this.tabs = new_tabs; if (this.selected.tab_id == id) { var first = this.firstTab(); if (typeof first != 'undefined') this.select(first.tab_id); } }, 
add: removeTab: function(tab) { if (Object.isString(tab)) tab = this.tabs.get(tab); tab.remove(); this.tabs.unset(tab);  if (this.selected == tab) { var first = this.firstTab(); if (first) this.select(first); else this.selected = null; } }, 
context: 	removeTab: function(tab)	{		var t = this._tabify(tab);		var id = t.tab_id;		Element.remove(t.page);		Element.remove(t);		new_tabs = $H();		this.tabs.each(			function(pair)			{				if (pair.key != id) new_tabs[pair.key] = pair.value;			}		);		this.tabs = new_tabs;		if (this.selected.tab_id == id)		{			var first = this.firstTab();			if (typeof first != 'undefined') this.select(first.tab_id);		}	},
meta: 7704	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7704/f57c98afcf9653e1e2c6eb9d33a8af5d5aa1a26c/frog.js/clean/admin/javascripts/frog.js