add = function(child) {
    var childDom = child.domElement();
    if (childDom) {
      goog.dom.appendChild(domElement, childDom);
      changesMade++;
      addings.push(i);
      child.notifyPrevParent(true);
    } else {
      flagSuccess = false;
    }
    return !!domElement;
  }
Sequentially applies a list of DOM changes to layer elements, index corrections are noted.
Ecit if we are not allowed to do enough changes or we need to change element that is not created.
@param {number} maxChanges Maximal quantity of allowed DOM changes.
@return {number} Quantity of real DOM changes.
@protected