code: function(object) {
          if (object) {
              switch(object.CLASS_NAME) {
                  case "OpenLayers.LonLat":
                      this.extendXY(object.lon, object.lat);
                      break;
                  case "OpenLayers.Geometry.Point":
                      this.extendXY(object.x, object.y);
                      break;
  
                  case "OpenLayers.Bounds":
                      // clear cached center location
                      this.centerLonLat = null;
  
                      if ( (this.left == null) || (object.left < this.left)) {
                          this.left = object.left;
                      }
                      if ( (this.bottom == null) || (object.bottom < this.bottom) ) {
                          this.bottom = object.bottom;
                      }
                      if ( (this.right == null) || (object.right > this.right) ) {
                          this.right = object.right;
                      }
                      if ( (this.top == null) || (object.top > this.top) ) {
                          this.top = object.top;
                      }
                      break;
              }
          }
      }
docs: APIMethod: extend
  Extend the bounds to include the <OpenLayers.LonLat>,
  <OpenLayers.Geometry.Point> or <OpenLayers.Bounds> specified.
  
  Please note that this function assumes that left < right and
  bottom < top.
  
  Parameters:
  object - {<OpenLayers.LonLat>, <OpenLayers.Geometry.Point> or
  <OpenLayers.Bounds>} The object to be included in the new bounds
  object.