lib/application.js
function createAndBindEventDelegate(eventDelegates, element, handler) {
		var delegate = new Box.DOMEventDelegate(element, handler, globalConfig.eventTypes);
		eventDelegates.push(delegate);
		delegate.attachEvents();
	}
function createAndBindEventDelegate(eventDelegates, element, handler) {
		var delegate = new Box.DOMEventDelegate(element, handler, globalConfig.eventTypes);
		eventDelegates.push(delegate);
		delegate.attachEvents();
	}
function createAndBindEventDelegate ( eventDelegates , element , handler ) { var delegate = new Box . DOMEventDelegate ( element , handler , globalConfig . eventTypes ) ; eventDelegates . push ( delegate ) ; delegate . attachEvents ( ) ; }
Creates a new event delegate and sets up its event handlers.
@param {Array} eventDelegates The array of event delegates to add to.
@param {HTMLElement} element The HTML element to bind to.
@param {Object} handler The handler object for the delegate (either the
module instance or behavior instance).
@returns {void}
@private
Creates a new event delegate and sets up its event handlers .