src/message-bus.js
/**
	 * Registers a listener of the specified message. Whenever the specified
	 * message is sent, the specified callBack function will be invoked passing
	 * the parameters specified in the send invocation
	 *
	 * @param {string}
	 *            name - The name of the message.
	 * @param {function}
	 *            callBack - A function receiving (a) an "event" object and (b)
	 *            the sequence of parameters specified in the call to send.
	 */
Registers a listener of the specified message. Whenever the specified
message is sent, the specified callBack function will be invoked passing
the parameters specified in the send invocation

@param {string}
name - The name of the message.
@param {function}
callBack - A function receiving (a) an "event" object and (b)
the sequence of parameters specified in the call to send.
Registers a listener of the specified message . Whenever the specified message is sent the specified callBack function will be invoked passing the parameters specified in the send invocation @param { string } name - The name of the message . @param { function } callBack - A function receiving ( a ) an " event " object and ( b ) the sequence of parameters specified in the call to send .
function listen(name, callBack) {
		messageBus.bind(name, function() {
			try {
				callBack.apply(this, arguments);
			} catch (e) {
				console.error(e);
			}
		});
	}
function listen ( name , callBack ) { messageBus . bind ( name , function ( ) { try { callBack . apply ( this , arguments ) ; } catch ( e ) { console . error ( e ) ; } } ) ; }
Registers a listener of the specified message.
Registers a listener of the specified message .