Thedric Walker...
, , :
- (), (), - (). ( , ) , - (Application Architect) . , , , . , , , .
, ?
Addy - Facade , , , . . , , :
var node = getNode('#errorPanel');
node.innerHTML = 'Field is invalid!';
- :
notifyUser.error('Field is invalid!');
, , , mediator.fire('error:Validation', 'Field is invalid!').
Addy, , . , - , , , , , . .
- (.. ) , - "" Core, Facade. , . mediator.fire('ready://Core') mediator.fire('updated://ToDos/task', taskId). facade 'updated://ToDos/task' core - :
var thus = mediator.installTo(this);
this.on('updated://ToDos/task', function(id){
thus.fire('request://Core/save/todo', id);
thus.fire('user://Core/notify/task/added', id);
});
this.on('response://Core/save/todo', function(err, id){
if(!err){
} else {
}
});
! !
, , ;)