src/sap.ui.core/src/sap/ui/base/ManagedObjectObserver.js
function updateSingleArray(aOrig, aAdditional, bRemove) {
		if (!aAdditional) {
			return;
		}

		for (var i = 0; i < aAdditional.length; i++) {
			var iIndex = aOrig.indexOf(aAdditional[i]);
			if (iIndex > -1 && bRemove) {
				aOrig.splice(iIndex, 1);
			} else if (iIndex === -1 && !bRemove) {
				aOrig.push(aAdditional[i]);
			}
		}
	}
function updateSingleArray(aOrig, aAdditional, bRemove) {
		if (!aAdditional) {
			return;
		}

		for (var i = 0; i < aAdditional.length; i++) {
			var iIndex = aOrig.indexOf(aAdditional[i]);
			if (iIndex > -1 && bRemove) {
				aOrig.splice(iIndex, 1);
			} else if (iIndex === -1 && !bRemove) {
				aOrig.push(aAdditional[i]);
			}
		}
	}
function updateSingleArray ( aOrig , aAdditional , bRemove ) { if ( ! aAdditional ) { return ; } for ( var i = 0 ; i < aAdditional . length ; i ++ ) { var iIndex = aOrig . indexOf ( aAdditional [ i ] ) ; if ( iIndex > - 1 && bRemove ) { aOrig . splice ( iIndex , 1 ) ; } else if ( iIndex === - 1 && ! bRemove ) { aOrig . push ( aAdditional [ i ] ) ; } } }
update the single array for observing and unobserving
update the single array for observing and unobserving