function _resolveStyleClasses(oControl, oSelectors) {
			var aStyleClasses = _generateClassNames(oSelectors);

			// Filter only the classes which are applied over the control
			aStyleClasses = aStyleClasses.filter(function (sClassName) {
				return oControl.hasStyleClass(sClassName);
			});

			if (!aStyleClasses.length) {
				return [];
			}

			// Extract aggregation name
			aStyleClasses = aStyleClasses.map(function (sClassName) {
				return sClassName.split("--")[1];
			});

			// Map aggregation name to oSelectors object
			aStyleClasses = aStyleClasses.map(function (sAggregationName) {
				return oSelectors[sAggregationName];
			})
				.filter(function (oSelector) {
					return oSelector;
				});

			return aStyleClasses;
		}
/**
		 * Checks styleClasses of the control and maps it to the available definitions.
		 *
		 * @param oControl
		 * @param oSelectors
		 * @returns {Array}
		 * @private
		 */
Checks styleClasses of the control and maps it to the available definitions.
@param oControl
@param oSelectors
@returns {Array}
@private
Checks styleClasses of the control and maps it to the available definitions . @param oControl @param oSelectors @returns { Array } @private
function _resolveStyleClasses(oControl, oSelectors) {
			var aStyleClasses = _generateClassNames(oSelectors);
			aStyleClasses = aStyleClasses.filter(function (sClassName) {
				return oControl.hasStyleClass(sClassName);
			});
			if (!aStyleClasses.length) {
				return [];
			}
			aStyleClasses = aStyleClasses.map(function (sClassName) {
				return sClassName.split("--")[1];
			});
			aStyleClasses = aStyleClasses.map(function (sAggregationName) {
				return oSelectors[sAggregationName];
			})
				.filter(function (oSelector) {
					return oSelector;
				});
			return aStyleClasses;
		}
function _resolveStyleClasses ( oControl , oSelectors ) { var aStyleClasses = _generateClassNames ( oSelectors ) ; aStyleClasses = aStyleClasses . filter ( function ( sClassName ) { return oControl . hasStyleClass ( sClassName ) ; } ) ; if ( ! aStyleClasses . length ) { return [ ] ; } aStyleClasses = aStyleClasses . map ( function ( sClassName ) { return sClassName . split ( "--" ) [ 1 ] ; } ) ; aStyleClasses = aStyleClasses . map ( function ( sAggregationName ) { return oSelectors [ sAggregationName ] ; } ) . filter ( function ( oSelector ) { return oSelector ; } ) ; return aStyleClasses ; }
Checks styleClasses of the control and maps it to the available definitions.
Checks styleClasses of the control and maps it to the available definitions .
// Filter only the classes which are applied over the control // Extract aggregation name // Map aggregation name to oSelectors object