js/core/Repeat.js
function (child, index) {
            var indexOffset = this._calculateIndexOffsetForChild(child);
            this.$parent.addChild(child, {childIndex: index + indexOffset});
        }
function (child, index) {
            var indexOffset = this._calculateIndexOffsetForChild(child);
            this.$parent.addChild(child, {childIndex: index + indexOffset});
        }
function ( child , index ) { var indexOffset = this . _calculateIndexOffsetForChild ( child ) ; this . $parent . addChild ( child , { childIndex : index + indexOffset } ) ; }
Adds a child element to the right index in the parent element
@param {js.core.Element} child - the child to add
@param {Number} index - index of item
@private
Adds a child element to the right index in the parent element