examples/todo/js/t3-dev-build.js
function bindEventType(element, type, handlers) {

		function eventHandler(event) {

			var targetElement = getNearestTypeElement(event.target),
				elementType = targetElement ? targetElement.getAttribute('data-type') : '';

			for (var i = 0; i < handlers.length; i++) {
				handlers[i](event, targetElement, elementType);
			}

			return true;
		}

		$(element).on(type, eventHandler);

		return eventHandler;
	}
function bindEventType(element, type, handlers) {

		function eventHandler(event) {

			var targetElement = getNearestTypeElement(event.target),
				elementType = targetElement ? targetElement.getAttribute('data-type') : '';

			for (var i = 0; i < handlers.length; i++) {
				handlers[i](event, targetElement, elementType);
			}

			return true;
		}

		$(element).on(type, eventHandler);

		return eventHandler;
	}
function bindEventType ( element , type , handlers ) { function eventHandler ( event ) { var targetElement = getNearestTypeElement ( event . target ) , elementType = targetElement ? targetElement . getAttribute ( 'data-type' ) : '' ; for ( var i = 0 ; i < handlers . length ; i ++ ) { handlers [ i ] ( event , targetElement , elementType ) ; } return true ; } $ ( element ) . on ( type , eventHandler ) ; return eventHandler ; }
Binds a user event to a DOM element with the given handler
@param {HTMLElement} element DOM element to bind the event to
@param {string} type Event type (click, mouseover, ...)
@param {Function[]} handlers Array of event callbacks to be called in that order
@returns {Function} The event handler
@private
Binds a user event to a DOM element with the given handler