code: function(x, y) {
  			if (!this._clientDiv) { return 0; }
  			var lineIndex = this._getLineIndex(y);
  			var line = this._getLine(lineIndex);
  			var offset = line.getOffset(x, y - this._getLinePixel(lineIndex));
  			line.destroy();
  			return offset;
  		}
docs: Returns the character offset nearest to the given pixel location.  The
  pixel location is relative to the document.
  
  @param x the x of the location
  @param y the y of the location
  @returns {Number} the character offset at the given location.
  
  @see orion.editor.TextView#getLocationAtOffset