code: function(offset) {
  			if (!this._clientDiv) { return {x: 0, y: 0}; }
  			var model = this._model;
  			offset = Math.min(Math.max(0, offset), model.getCharCount());
  			var lineIndex = model.getLineAtOffset(offset);
  			var line = this._getLine(lineIndex);
  			var rect = line.getBoundingClientRect(offset);
  			line.destroy();
  			var x = rect.left;
  			var y = this._getLinePixel(lineIndex) + rect.top;
  			return {x: x, y: y};
  		}
docs: Returns the {x, y} pixel location of the top-left corner of the character
  bounding box at the specified offset in the document.  The pixel location
  is relative to the document.
  <p>
  Clamps out of range offsets.
  </p>
  
  @param {Number} offset the character offset
  @returns {Object} the {x, y} pixel location of the given offset.
  
  @see orion.editor.TextView#getOffsetAtLocation
  @see orion.editor.TextView#convert