Implement jQuery style event delegation.