function trimAndCheckForDuplicates(aSelect, sPath) {
		var sCurrentProperty,
			bError = false,
			i,
			n;

		// replace all white-spaces before and after the value
		for (i = 0, n = aSelect.length; i < n; i++) {
			aSelect[i] = aSelect[i].trim();
		}
		// check for duplicate entries and remove from list
		for (i = aSelect.length - 1; i >= 0; i--) {
			sCurrentProperty = aSelect[i];
			if (aSelect.indexOf(sCurrentProperty) !== i) {
				// found duplicate
				oLogger.warning("Ignored the 'select' binding parameter, because it"
						+ " contains the property '" + sCurrentProperty + "' multiple times",
					sPath);
				aSelect.splice(i, 1);
				bError = true;
			}
		}
		return bError;
	}
function trimAndCheckForDuplicates(aSelect, sPath) {
		var sCurrentProperty,
			bError = false,
			i,
			n;

		// replace all white-spaces before and after the value
		for (i = 0, n = aSelect.length; i < n; i++) {
			aSelect[i] = aSelect[i].trim();
		}
		// check for duplicate entries and remove from list
		for (i = aSelect.length - 1; i >= 0; i--) {
			sCurrentProperty = aSelect[i];
			if (aSelect.indexOf(sCurrentProperty) !== i) {
				// found duplicate
				oLogger.warning("Ignored the 'select' binding parameter, because it"
						+ " contains the property '" + sCurrentProperty + "' multiple times",
					sPath);
				aSelect.splice(i, 1);
				bError = true;
			}
		}
		return bError;
	}
function trimAndCheckForDuplicates ( aSelect , sPath ) { var sCurrentProperty , bError = false , i , n ; // replace all white-spaces before and after the value for ( i = 0 , n = aSelect . length ; i < n ; i ++ ) { aSelect [ i ] = aSelect [ i ] . trim ( ) ; } // check for duplicate entries and remove from list for ( i = aSelect . length - 1 ; i >= 0 ; i -- ) { sCurrentProperty = aSelect [ i ] ; if ( aSelect . indexOf ( sCurrentProperty ) !== i ) { // found duplicate oLogger . warning ( "Ignored the 'select' binding parameter, because it" + " contains the property '" + sCurrentProperty + "' multiple times" , sPath ) ; aSelect . splice ( i , 1 ) ; bError = true ; } } return bError ; }
Iterate over the given array, trim each value and check whether there are duplicate entries
in the array. If there are duplicate entries a warning is logged and the duplicate is removed
from the array.

@param {string[]} aSelect An array of strings
@param {string} sPath The binding path
@returns {boolean} <code>true</code> if there is at least one duplicate entry in the array.
Iterate over the given array trim each value and check whether there are duplicate entries in the array . If there are duplicate entries a warning is logged and the duplicate is removed from the array .
trim the given array of values