src/sap.ui.core/src/sap/ui/core/FocusHandler.js
function(sControlId, sRelatedControlId, oCore){
			var oControl = sControlId ? oCore && oCore.byId(sControlId) : null;
			if (oControl) {
				var oRelatedControl = sRelatedControlId ? oCore.byId(sRelatedControlId) : null;
				var oEvent = jQuery.Event("sapfocusleave");
				oEvent.target = oControl.getDomRef();
				oEvent.relatedControlId = oRelatedControl ? oRelatedControl.getId() : null;
				oEvent.relatedControlFocusInfo = oRelatedControl ? oRelatedControl.getFocusInfo() : null;
				//TODO: Cleanup the popup! The following is shit
				var oControlUIArea = oControl.getUIArea();
				var oUiArea = null;
				if (oControlUIArea) {
					oUiArea = oCore.getUIArea(oControlUIArea.getId());
				} else {
					var oPopupUIAreaDomRef = oCore.getStaticAreaRef();
					if (containsOrEquals(oPopupUIAreaDomRef, oEvent.target)) {
						oUiArea = oCore.getUIArea(oPopupUIAreaDomRef.id);
					}
				}
				if (oUiArea) {
					oUiArea._handleEvent(oEvent);
				}
			}
		}
function(sControlId, sRelatedControlId, oCore){
			var oControl = sControlId ? oCore && oCore.byId(sControlId) : null;
			if (oControl) {
				var oRelatedControl = sRelatedControlId ? oCore.byId(sRelatedControlId) : null;
				var oEvent = jQuery.Event("sapfocusleave");
				oEvent.target = oControl.getDomRef();
				oEvent.relatedControlId = oRelatedControl ? oRelatedControl.getId() : null;
				oEvent.relatedControlFocusInfo = oRelatedControl ? oRelatedControl.getFocusInfo() : null;
				//TODO: Cleanup the popup! The following is shit
				var oControlUIArea = oControl.getUIArea();
				var oUiArea = null;
				if (oControlUIArea) {
					oUiArea = oCore.getUIArea(oControlUIArea.getId());
				} else {
					var oPopupUIAreaDomRef = oCore.getStaticAreaRef();
					if (containsOrEquals(oPopupUIAreaDomRef, oEvent.target)) {
						oUiArea = oCore.getUIArea(oPopupUIAreaDomRef.id);
					}
				}
				if (oUiArea) {
					oUiArea._handleEvent(oEvent);
				}
			}
		}
function ( sControlId , sRelatedControlId , oCore ) { var oControl = sControlId ? oCore && oCore . byId ( sControlId ) : null ; if ( oControl ) { var oRelatedControl = sRelatedControlId ? oCore . byId ( sRelatedControlId ) : null ; var oEvent = jQuery . Event ( "sapfocusleave" ) ; oEvent . target = oControl . getDomRef ( ) ; oEvent . relatedControlId = oRelatedControl ? oRelatedControl . getId ( ) : null ; oEvent . relatedControlFocusInfo = oRelatedControl ? oRelatedControl . getFocusInfo ( ) : null ; //TODO: Cleanup the popup! The following is shit var oControlUIArea = oControl . getUIArea ( ) ; var oUiArea = null ; if ( oControlUIArea ) { oUiArea = oCore . getUIArea ( oControlUIArea . getId ( ) ) ; } else { var oPopupUIAreaDomRef = oCore . getStaticAreaRef ( ) ; if ( containsOrEquals ( oPopupUIAreaDomRef , oEvent . target ) ) { oUiArea = oCore . getUIArea ( oPopupUIAreaDomRef . id ) ; } } if ( oUiArea ) { oUiArea . _handleEvent ( oEvent ) ; } } }
Calls the onsapfocusleave function on the control with id sControlId
with the information about the given related control.

@param {string} sControlId
@param {string} sRelatedControlId
@private
Calls the onsapfocusleave function on the control with id sControlId with the information about the given related control .