code: function(newBuffer) {
      var parent = this.parentBuffer;
      if (!parent) { return; }
  
      var childBuffers = parent.childBuffers;
  
      var index = indexOf.call(childBuffers, this);
  
      if (newBuffer) {
        childBuffers.splice(index, 1, newBuffer);
      } else {
        childBuffers.splice(index, 1);
      }
    }
docs: Replace the current buffer with a new buffer. This is a primitive
  used by `remove`, which passes `null` for `newBuffer`, and `replaceWith`,
  which passes the new buffer it created.
  
  @private
  @param {Ember._RenderBuffer} buffer The buffer to insert in place of
  the existing buffer.