code: function(x, y, elem) {
          Garnish.hitTest._$elem = $(elem);
          Garnish.hitTest._offset = Garnish.hitTest._$elem.offset();
          Garnish.hitTest._x1 = Garnish.hitTest._offset.left;
          Garnish.hitTest._y1 = Garnish.hitTest._offset.top;
          Garnish.hitTest._x2 = Garnish.hitTest._x1 + Garnish.hitTest._$elem.outerWidth();
          Garnish.hitTest._y2 = Garnish.hitTest._y1 + Garnish.hitTest._$elem.outerHeight();
  
          return (x >= Garnish.hitTest._x1 && x < Garnish.hitTest._x2 && y >= Garnish.hitTest._y1 && y < Garnish.hitTest._y2);
      }
docs: Returns whether an element is touching an x/y coordinate.
  
  @param {number}    x    The coordinate's X position.
  @param {number}    y    The coordinate's Y position.
  @param {object} elem Either an actual element or a jQuery collection.
  @return {boolean}