main.js
function bindEventMap(eventMap, eventEmitter) {
	var eventNames = Object.keys(eventMap);
	eventNames.map(function (eventName) {
		eventEmitter.on(eventName, eventMap[eventName]);
	});
}
function bindEventMap(eventMap, eventEmitter) {
	var eventNames = Object.keys(eventMap);
	eventNames.map(function (eventName) {
		eventEmitter.on(eventName, eventMap[eventName]);
	});
}
function bindEventMap ( eventMap , eventEmitter ) { var eventNames = Object . keys ( eventMap ) ; eventNames . map ( function ( eventName ) { eventEmitter . on ( eventName , eventMap [ eventName ] ) ; } ) ; }
Bind to user supplied event map, where key is event name
@param {{}} eventMap
@param {EventEmitter} eventEmitter
Bind to user supplied event map where key is event name