/**
 * The WAWEvent class represents an event,
 * WAWEvent class provides static functions to fire or observe an event
 */
var WAWEvent = Class.create();

/**
 * Subscribes a callback for an event. (Use dom events)
 * @param qName : the signature of the event to observe
 * @param callback : a function to call when the event is raised
 */
WAWEvent.observe = function(qName, callback) {
	Event.observe(document, qName, callback);
};

/**
 * Fires an event. (Use dom events)
 * @param qName : the signature of the event to fire
 * @param args : a event instance to propagate
 */
WAWEvent.fire = function(qName, args) {
	document.fire(qName, args);
	WAWLogger.trace("WAWEvent", "Firing '"+qName+"'");
};
