Add a native, custom, or X-Tag library event listener to an element.

xtag.addEvent(ELEMENT, TYPE, FUNCTION)

ArgumentsTypeDescription
ELEMENTDOM element referenceThe element you would like to attach an event listener to.
TYPEStringThe event name, with any event pseudos you may want to chain.
FUNCTIONFunctionThe event handler you wish to use when the event occurs.
xtag.addEvent(myElement, 'tap', function(event){
	alert('myElement was just tapped ' + this);
});