code: function (child, index) {
              var indexOffset = this._calculateIndexOffsetForChild(child);
              this.$parent.addChild(child, {childIndex: index + indexOffset});
          }
docs: 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