src/sap.f/src/sap/f/routing/Targets.js
function (oTarget) {
				var iViewLevel;
				do {
					iViewLevel = oTarget._oOptions.viewLevel;
					if (iViewLevel !== undefined) {
						return iViewLevel;
					}
					oTarget = oTarget._oParent;
				} while (oTarget);

				return iViewLevel;
			}
function (oTarget) {
				var iViewLevel;
				do {
					iViewLevel = oTarget._oOptions.viewLevel;
					if (iViewLevel !== undefined) {
						return iViewLevel;
					}
					oTarget = oTarget._oParent;
				} while (oTarget);

				return iViewLevel;
			}
function ( oTarget ) { var iViewLevel ; do { iViewLevel = oTarget . _oOptions . viewLevel ; if ( iViewLevel !== undefined ) { return iViewLevel ; } oTarget = oTarget . _oParent ; } while ( oTarget ) ; return iViewLevel ; }
Traverse up from the given target through the parent chain to find out the first target with a defined view level.
@param {sap.f.routing.Target} oTarget The target from which the traverse starts to find the first defined view level
@return {number} The view level
@private
Traverse up from the given target through the parent chain to find out the first target with a defined view level .