src/TabBar/TabBar.js
function (inSender, inEvent) {
		var that = this ;
		var popup = this.$.popup;

		for (var name in popup.$) {
			if (popup.$.hasOwnProperty(name) && /menuItem/.test(name)) {
				popup.$[name].destroy();
			}
		}

		//popup.render();
		utils.forEach(
			this.$.tabs.getControls(),
			function (tab) {
				that.$.popup.createComponent({
					content: tab.content,
					value: tab.tabIndex
				}) ;
			}
		);

		popup.maxHeightChanged();
		popup.showAtPosition({top: 30, right:30});
		this.render();
		this.resize(); // required for IE10 to work correctly
		return ;
	}
function (inSender, inEvent) {
		var that = this ;
		var popup = this.$.popup;

		for (var name in popup.$) {
			if (popup.$.hasOwnProperty(name) && /menuItem/.test(name)) {
				popup.$[name].destroy();
			}
		}

		//popup.render();
		utils.forEach(
			this.$.tabs.getControls(),
			function (tab) {
				that.$.popup.createComponent({
					content: tab.content,
					value: tab.tabIndex
				}) ;
			}
		);

		popup.maxHeightChanged();
		popup.showAtPosition({top: 30, right:30});
		this.render();
		this.resize(); // required for IE10 to work correctly
		return ;
	}
function ( inSender , inEvent ) { var that = this ; var popup = this . $ . popup ; for ( var name in popup . $ ) { if ( popup . $ . hasOwnProperty ( name ) && / menuItem / . test ( name ) ) { popup . $ [ name ] . destroy ( ) ; } } //popup.render(); utils . forEach ( this . $ . tabs . getControls ( ) , function ( tab ) { that . $ . popup . createComponent ( { content : tab . content , value : tab . tabIndex } ) ; } ) ; popup . maxHeightChanged ( ) ; popup . showAtPosition ( { top : 30 , right : 30 } ) ; this . render ( ) ; this . resize ( ) ; // required for IE10 to work correctly return ; }
Since action buttons of Contextual Popups are not dynamic, this
kind is created on the fly and destroyed once the user clicks
on a button

@private
Since action buttons of Contextual Popups are not dynamic this kind is created on the fly and destroyed once the user clicks on a button