code: function(x, y, xyOnly) {
          var left = x + (xyOnly ? 0 : this.translationParameters.x);
          var top = y + (xyOnly ? 0 : this.translationParameters.y);
          return (left >= -this.MAX_PIXEL && left <= this.MAX_PIXEL &&
                  top >= -this.MAX_PIXEL && top <= this.MAX_PIXEL);
      }
docs: Method: inValidRange
  See #669 for more information
  
  Parameters:
  x      - {Integer}
  y      - {Integer}
  xyOnly - {Boolean} whether or not to just check for x and y, which means
  to not take the current translation parameters into account if true.
  
  Returns:
  {Boolean} Whether or not the 'x' and 'y' coordinates are in the
  valid range.