code: function(type, evt) {
          var layer = evt.feature ? evt.feature.layer : evt.layer,
              object = this.target.object;
          if (object instanceof OpenLayers.Map || object === layer) {
              return this.target.triggerEvent(type, evt);
          }
      }
docs: Method: triggerEvent
  Determines where to trigger the event and triggers it.
  
  Parameters:
  type - {String} The event type to trigger
  evt - {Object} The listener argument
  
  Returns:
  {Boolean} The last listener return.