add children to data buffer, and emit value

@return {Promise}
function addChildren(newData) {
    var promises = [];
    newData.forEach(function (child) {
      promises.push(add(child));
    });

    return Promise.all(promises).then(emitValue);
  }