function addElements(aReadElements, iOffset) {
		var aElements = this.aElements;

		if (!Array.isArray(aReadElements)) {
			aReadElements = [aReadElements];
		}
		aReadElements.forEach(function (oElement, i) {
			var sPredicate = _Helper.getPrivateAnnotation(oElement, "predicate");

			// for simplicity, avoid most sanity checks of _AggregationCache#addElements
			if (iOffset + i >= aElements.length) {
				throw new Error("Array index out of bounds: " + (iOffset + i));
			}
			aElements[iOffset + i] = oElement;
			if (sPredicate) { // Note: sometimes, even $byPredicate is missing...
				aElements.$byPredicate[sPredicate] = oElement;
			}
		});
	}
/**
	 * Copies the given elements from a cache read into <code>this.aElements</code>.
	 *
	 * @param {object|object[]} aReadElements
	 *   The elements from a cache read, or just a single one
	 * @param {number} iOffset
	 *   The offset within aElements
	 *
	 * @private
	 */
Copies the given elements from a cache read into this.aElements.
@param {object|object[]} aReadElements
The elements from a cache read, or just a single one
@param {number} iOffset
The offset within aElements

@private
Copies the given elements from a cache read into this . aElements . @param { object|object [] } aReadElements The elements from a cache read or just a single one @param { number } iOffset The offset within aElements @private
function addElements(aReadElements, iOffset) {
		var aElements = this.aElements;
		if (!Array.isArray(aReadElements)) {
			aReadElements = [aReadElements];
		}
		aReadElements.forEach(function (oElement, i) {
			var sPredicate = _Helper.getPrivateAnnotation(oElement, "predicate");
			if (iOffset + i >= aElements.length) {
				throw new Error("Array index out of bounds: " + (iOffset + i));
			}
			aElements[iOffset + i] = oElement;
			if (sPredicate) { 
				aElements.$byPredicate[sPredicate] = oElement;
			}
		});
	}
function addElements ( aReadElements , iOffset ) { var aElements = this . aElements ; if ( ! Array . isArray ( aReadElements ) ) { aReadElements = [ aReadElements ] ; } aReadElements . forEach ( function ( oElement , i ) { var sPredicate = _Helper . getPrivateAnnotation ( oElement , "predicate" ) ; if ( iOffset + i >= aElements . length ) { throw new Error ( "Array index out of bounds: " + ( iOffset + i ) ) ; } aElements [ iOffset + i ] = oElement ; if ( sPredicate ) { aElements . $byPredicate [ sPredicate ] = oElement ; } } ) ; }
Copies the given elements from a cache read into <code>this.aElements</code>.
Copies the given elements from a cache read into <code > this . aElements< / code > .
// for simplicity, avoid most sanity checks of _AggregationCache#addElements // Note: sometimes, even $byPredicate is missing...