src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js
function getScopeBasedDesignTime(mMetadata, sScopeKey) {
		var mResult = mMetadata;

		if ("default" in mMetadata) {
			mResult = merge(
				{},
				mMetadata.default,
				sScopeKey !== "default" && mMetadata[sScopeKey] || null
			);
		}

		return mResult;
	}
function getScopeBasedDesignTime(mMetadata, sScopeKey) {
		var mResult = mMetadata;

		if ("default" in mMetadata) {
			mResult = merge(
				{},
				mMetadata.default,
				sScopeKey !== "default" && mMetadata[sScopeKey] || null
			);
		}

		return mResult;
	}
function getScopeBasedDesignTime ( mMetadata , sScopeKey ) { var mResult = mMetadata ; if ( "default" in mMetadata ) { mResult = merge ( { } , mMetadata . default , sScopeKey !== "default" && mMetadata [ sScopeKey ] || null ) ; } return mResult ; }
Extracts metadata from metadata map by scope key
@param {object} mMetadata metadata map received from loader
@param {string} sScopeKey scope name to be extracted
@private
Extracts metadata from metadata map by scope key