batmanjs/batman — pull request #880 by chantastic (2013-11-05 09:18:51+00:00)
Title: feat(events): Add 'default' event for easy extension of Batman event-vocabulary

### Request for more easily extensible event-vocabulary

This is a very minor patch that provides for more appropriate event handling across devices.

Our app is mobile-only and `click` events are sloooooow. We found that adding `data-event-tap` events solved only half of our speed problem as `data-route` bindings are hard-coded to register `click` listeners.

This patch allows for configuration of the `default` event. `click` is obviously retained in all it's previous glory, and remains the default ( configured with `defaultEventName`). However, touch-focused apps are afforded a way to use a *snappier* `tap` event, as `default`, with the approprate library.

Please let me know if anything seems out of place or poorly named and I'll quickly fix it.

Thanks!

---
### What was done

- Add `defaultEventName` configuration to namespace options
- Add `default` event to replace default `click` event
- Update `click` to extend `default`
- Update `dblclick` to extend `default`
- Update `RouteBinding` to register `DOM.events.default`