src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js
function(oEvent) {
				// in our use-case each tab contains a single subSection => only this subSection needs to be processed
				var oSubSection = oEvent.getParameter("subSection"),
					sId = oSubSection.getId(),
					aBlocks;

				//attach listeners that prettify the tab content upon its rendering
				if (this._aVisitedTabs.indexOf(sId) < 0) { // avoid adding listeners to the same tab twice
					aBlocks = oSubSection.getBlocks();
					aBlocks.forEach(function(oBlock) {
						oBlock.addEventDelegate({"onAfterRendering": this._prettify.bind(this)});
					}.bind(this));

					this._aVisitedTabs.push(sId);
				}
			}
function(oEvent) {
				// in our use-case each tab contains a single subSection => only this subSection needs to be processed
				var oSubSection = oEvent.getParameter("subSection"),
					sId = oSubSection.getId(),
					aBlocks;

				//attach listeners that prettify the tab content upon its rendering
				if (this._aVisitedTabs.indexOf(sId) < 0) { // avoid adding listeners to the same tab twice
					aBlocks = oSubSection.getBlocks();
					aBlocks.forEach(function(oBlock) {
						oBlock.addEventDelegate({"onAfterRendering": this._prettify.bind(this)});
					}.bind(this));

					this._aVisitedTabs.push(sId);
				}
			}
function ( oEvent ) { // in our use-case each tab contains a single subSection => only this subSection needs to be processed var oSubSection = oEvent . getParameter ( "subSection" ) , sId = oSubSection . getId ( ) , aBlocks ; //attach listeners that prettify the tab content upon its rendering if ( this . _aVisitedTabs . indexOf ( sId ) < 0 ) { // avoid adding listeners to the same tab twice aBlocks = oSubSection . getBlocks ( ) ; aBlocks . forEach ( function ( oBlock ) { oBlock . addEventDelegate ( { "onAfterRendering" : this . _prettify . bind ( this ) } ) ; } . bind ( this ) ) ; this . _aVisitedTabs . push ( sId ) ; } }
Attach listeners that prettify the tab content upon its rendering
@param {oEvent} tab navigate event
@private
Attach listeners that prettify the tab content upon its rendering