src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js
function(oThis, oMN) {
			if (oMN && oMN.hasItems()) {
				var $messageCount = oMN.$("counter");

				// remove all possible classes
				$messageCount.removeClass("sapUiMessageInformation");
				$messageCount.removeClass("sapUiMessageSuccess");
				$messageCount.removeClass("sapUiMessageWarning");
				$messageCount.removeClass("sapUiMessageError");

				// re-sort the messages and re-calc the severity level because they could have been changed
				// if the NotiBar was invisible
				fnSortMessages(oThis, oMN);
				// add new corresponding class
				var sLvl = oThis._sSeverestMessageLevel;
				$messageCount.addClass("sapUiMessage" + sLvl);

				// create key for description text
				var iCount = oMN.getMessages().length;
				var sKey = "NOTIBAR_MESSAGE_NOTIFIER_DESC_LEVEL_" + sLvl.toUpperCase() + (iCount === 1 ? "_SING" : "_PL");

				// set description (i.e. "3 messages available: Highest severity
				// "Error")
				fnSetNotifierDescription(oThis, oMN, sKey, iCount);
			}
		}
function(oThis, oMN) {
			if (oMN && oMN.hasItems()) {
				var $messageCount = oMN.$("counter");

				// remove all possible classes
				$messageCount.removeClass("sapUiMessageInformation");
				$messageCount.removeClass("sapUiMessageSuccess");
				$messageCount.removeClass("sapUiMessageWarning");
				$messageCount.removeClass("sapUiMessageError");

				// re-sort the messages and re-calc the severity level because they could have been changed
				// if the NotiBar was invisible
				fnSortMessages(oThis, oMN);
				// add new corresponding class
				var sLvl = oThis._sSeverestMessageLevel;
				$messageCount.addClass("sapUiMessage" + sLvl);

				// create key for description text
				var iCount = oMN.getMessages().length;
				var sKey = "NOTIBAR_MESSAGE_NOTIFIER_DESC_LEVEL_" + sLvl.toUpperCase() + (iCount === 1 ? "_SING" : "_PL");

				// set description (i.e. "3 messages available: Highest severity
				// "Error")
				fnSetNotifierDescription(oThis, oMN, sKey, iCount);
			}
		}
function ( oThis , oMN ) { if ( oMN && oMN . hasItems ( ) ) { var $messageCount = oMN . $ ( "counter" ) ; // remove all possible classes $messageCount . removeClass ( "sapUiMessageInformation" ) ; $messageCount . removeClass ( "sapUiMessageSuccess" ) ; $messageCount . removeClass ( "sapUiMessageWarning" ) ; $messageCount . removeClass ( "sapUiMessageError" ) ; // re-sort the messages and re-calc the severity level because they could have been changed // if the NotiBar was invisible fnSortMessages ( oThis , oMN ) ; // add new corresponding class var sLvl = oThis . _sSeverestMessageLevel ; $messageCount . addClass ( "sapUiMessage" + sLvl ) ; // create key for description text var iCount = oMN . getMessages ( ) . length ; var sKey = "NOTIBAR_MESSAGE_NOTIFIER_DESC_LEVEL_" + sLvl . toUpperCase ( ) + ( iCount === 1 ? "_SING" : "_PL" ) ; // set description (i.e. "3 messages available: Highest severity // "Error") fnSetNotifierDescription ( oThis , oMN , sKey , iCount ) ; } }
This method sets the corresponding CSS class to the message notifier's
counter to set its corresponding color and sets the corresponding ARIA
information to the notifier's description element

@private
This method sets the corresponding CSS class to the message notifier s counter to set its corresponding color and sets the corresponding ARIA information to the notifier s description element