Improve compatibility with old browsers
Improve compatibility with old browsers

1) Add the "useCapture" parameter to document.addEventListener() - required prior to Firefox 6.
2) Check if document.addEventListener() is available - e.g. IE8 and earlier only had attachEvent().
3) Add exception handling so that init() cannot crash - e.g. Document.querySelectorAll() prior to IE9.

Note: Since touchtap-event does not work on IE8 and earlier (document.createEvent fails) no attempt has been made to get abbr-touch working on IE8. The safety checks just ensure the init() function does not crash on IE8.

Tyriar/abbr-touch,Tyriar/abbr-touch