code: function _layerCanFireEvent(layer, eventType) {
  	// If events are disable and if
  	// layer is tangible or event is not tangible
  	return (!layer.disableEvents &&
  		(!layer.intangible || $.inArray(eventType, tangibleEvents) === -1));
  }
docs: Determine if the given layer can "legally" fire the given event