code: function(feature) {
          var cont = this.onBeforeSelect.call(this.scope, feature);
          var layer = feature.layer;
          if(cont !== false) {
              cont = layer.events.triggerEvent("beforefeatureselected", {
                  feature: feature
              });
              if(cont !== false) {
                  layer.selectedFeatures.push(feature);
                  this.highlight(feature);
                  // if the feature handler isn't involved in the feature
                  // selection (because the box handler is used or the
                  // feature is selected programatically) we fake the
                  // feature handler to allow unselecting on click
                  if(!this.handlers.feature.lastFeature) {
                      this.handlers.feature.lastFeature = layer.selectedFeatures[0];
                  }
                  layer.events.triggerEvent("featureselected", {feature: feature});
                  this.onSelect.call(this.scope, feature);
              }
          }
      }
docs: Method: select
  Add feature to the layer's selectedFeature array, render the feature as
  selected, and call the onSelect function.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>}