function _selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible) {
			var iCurrent;

			if (iFirstSelected === iLastSelected) {
				oClock._animationInProgress = false;
			}

			iCurrent = iFirstSelected > iMax ? iFirstSelected - iMax : iFirstSelected;
			if (bSupport2400) {
				if (iCurrent === 24 && !bIs24HoursVisible) {
					iCurrent = 0;
				} else if (iCurrent === 0 && bIs24HoursVisible) {
					iCurrent = 24;
				}
			}

			oClock.setSelectedValue(iCurrent);

			if (iFirstSelected !== iLastSelected) {
				iFirstSelected += iDirection;
				setTimeout(function() {
					_selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible);
				}, iDelay);
			} else {
				// the new value is set, fire event
				setTimeout(function() {
					oClock.fireChange({value: iNewValue, stringValue: oClock._getStringValue(iNewValue), finalChange: true});
				}, ANIMATION_DELAY_EVENT);
			}
		}
/**
		 * Does the animation between old and new selected values.
		 *
		 * @param {sap.m.TimePickerClock} oClock clock object
		 * @param {int} iFirstSelected first/current value to move from
		 * @param {int} iLastSelected last value to move to
		 * @param {int} iDirection direction of the animation
		 * @param {int} iMax max clock value
		 * @param {int} iNewValue new value
		 * @param {int} iDelay delay of the single step
		 * @param {boolean} bSupport2400 <code>true</code> when the clock has <code>support2400</code> property set
		 * @param {boolean} bIs24HoursVisible is "24" visible or not
		 */
Does the animation between old and new selected values.
Does the animation between old and new selected values .
function _selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible) {
			var iCurrent;
			if (iFirstSelected === iLastSelected) {
				oClock._animationInProgress = false;
			}
			iCurrent = iFirstSelected > iMax ? iFirstSelected - iMax : iFirstSelected;
			if (bSupport2400) {
				if (iCurrent === 24 && !bIs24HoursVisible) {
					iCurrent = 0;
				} else if (iCurrent === 0 && bIs24HoursVisible) {
					iCurrent = 24;
				}
			}
			oClock.setSelectedValue(iCurrent);
			if (iFirstSelected !== iLastSelected) {
				iFirstSelected += iDirection;
				setTimeout(function() {
					_selectNextNumber(oClock, iFirstSelected, iLastSelected, iDirection, iMax, iNewValue, iDelay, bSupport2400, bIs24HoursVisible);
				}, iDelay);
			} else {
				setTimeout(function() {
					oClock.fireChange({value: iNewValue, stringValue: oClock._getStringValue(iNewValue), finalChange: true});
				}, ANIMATION_DELAY_EVENT);
			}
		}
function _selectNextNumber ( oClock , iFirstSelected , iLastSelected , iDirection , iMax , iNewValue , iDelay , bSupport2400 , bIs24HoursVisible ) { var iCurrent ; if ( iFirstSelected === iLastSelected ) { oClock . _animationInProgress = false ; } iCurrent = iFirstSelected > iMax ? iFirstSelected - iMax : iFirstSelected ; if ( bSupport2400 ) { if ( iCurrent === 24 && ! bIs24HoursVisible ) { iCurrent = 0 ; } else if ( iCurrent === 0 && bIs24HoursVisible ) { iCurrent = 24 ; } } oClock . setSelectedValue ( iCurrent ) ; if ( iFirstSelected !== iLastSelected ) { iFirstSelected += iDirection ; setTimeout ( function ( ) { _selectNextNumber ( oClock , iFirstSelected , iLastSelected , iDirection , iMax , iNewValue , iDelay , bSupport2400 , bIs24HoursVisible ) ; } , iDelay ) ; } else { setTimeout ( function ( ) { oClock . fireChange ( { value : iNewValue , stringValue : oClock . _getStringValue ( iNewValue ) , finalChange : true } ) ; } , ANIMATION_DELAY_EVENT ) ; } }
Does the animation between old and new selected values.
Does the animation between old and new selected values .
// the new value is set, fire event