src/TabBar/TabBar.js
function (target) {
		var tab = this.resolveTab(target,'removeTab');
		var tabData = {
			index:   tab.tabIndex,
			caption: tab.content,
			tooltipMsg: tab.tooltipMsg,
			userId:  tab.userId,
			data:    tab.userData
		} ;
		var that = this ;
		if (tab) {
			tabData.next = function (err) {
				if (err) { throw new Error(err);   }
				else     { that.removeTab(target); }
			} ;
			this.doTabRemoveRequested( tabData ) ;
		}
	}
function (target) {
		var tab = this.resolveTab(target,'removeTab');
		var tabData = {
			index:   tab.tabIndex,
			caption: tab.content,
			tooltipMsg: tab.tooltipMsg,
			userId:  tab.userId,
			data:    tab.userData
		} ;
		var that = this ;
		if (tab) {
			tabData.next = function (err) {
				if (err) { throw new Error(err);   }
				else     { that.removeTab(target); }
			} ;
			this.doTabRemoveRequested( tabData ) ;
		}
	}
function ( target ) { var tab = this . resolveTab ( target , 'removeTab' ) ; var tabData = { index : tab . tabIndex , caption : tab . content , tooltipMsg : tab . tooltipMsg , userId : tab . userId , data : tab . userData } ; var that = this ; if ( tab ) { tabData . next = function ( err ) { if ( err ) { throw new Error ( err ) ; } else { that . removeTab ( target ) ; } } ; this . doTabRemoveRequested ( tabData ) ; } }
Request to remove a tab from the tab bar. This is a bit
like removeTab, except that a onTabRemoveRequested event is
fired to let the application the possibility to cancel the
request.

@public
Request to remove a tab from the tab bar . This is a bit like removeTab except that a onTabRemoveRequested event is fired to let the application the possibility to cancel the request .