code: function(text)
      {
          if (this._uncommittedIsTop) {
              this._data.pop();
              delete this._uncommittedIsTop;
          }
  
          this._historyOffset = 1;
          if (this._coalesceHistoryDupes && text === this._currentHistoryItem())
              return;
          this._data.push(text);
      }
docs: Pushes a committed text into the history.
  @param {string} text