2010/12/22 Acaz Souza Pereira <[email protected]>

> Hmmm,
>
> how this work in practice? The model will have a callback function? The
> model will refresh the view? Who will trigger the action to refresh the
> view?
>
> I did not know this other way of MVC in event-driven system

Publish / subscribe (pub/sub) is a great patter to address such questions.
An event can be subscribed to, and can be published. The view can subscribe
to the messages, and the model could publish the message. Browsers do
support pub/sub pattern, as well as server side implementations like
Node.js.

-- 
Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to