//= require <mootools-core-1.3-full-nocompat>
//= require <puremvc-mootools-port>
//= require <findsalons/ApplicationFacade>
var MyAccountViewMediator = function()
{
	this.Extends = Mediator;
	
	this.myAccountView = null;
	
	this.initialize = function(viewComponent /* MyAccountView */)
	{
		this.parent(MyAccountViewMediator.NAME, viewComponent);
		this.myAccountView = viewComponent;
	};
	
	this.onRegister = function()
	{
		this.myAccountView.addEventListener("editListing", this.editListingHandler, false, 0, this);
	};
	
	this.editListingHandler = function(event)
	{
		this.sendNotification(new Notification(ApplicationFacade.EDIT_LISTING, event.data));
	};
};

MyAccountViewMediator = new Class(new MyAccountViewMediator());
MyAccountViewMediator.NAME = "MyAccountViewMediator";
