On Thu, Jun 18, 2009 at 5:38 PM, Ian Bambury<ianbamb...@gmail.com> wrote:
> 2009/6/19 Ian Petersen <ispet...@gmail.com>
>>
>> On Thu, Jun 18, 2009 at 3:56 PM, Ian Bambury<ianbamb...@gmail.com> wrote:
>> > 2009/6/18 Thomas Broyer <t.bro...@gmail.com>
>> >> Whether the eventbus has a reference to the widget is
>> >> orthogonal.
>> >
>> > I didn't realise that widgets were bird-watchers! :-)
>>
>> Do you mean ornithologists?
>
> Aren't they eye-doctors?

Oh!  You mean opthamologists!  :D

>> Anyway, I think Thomas is talking about the presenter either being a
>> widget or wrapping a widget.  Widgets are notified when their elements
>> are removed from the DOM, so you could conceivable make the presenter
>> aware of the DOM detachment and use that as a convenient time to "get
>> off the bus".
>
> My (limited) understanding of what Ray Ryan was saying (and what I
> understand of MVP) is that the presenter is completely separated from the
> DOM elements (in order to facilitate testing, and because the view is solely
> responsible for the view so you can swap views in and out as you please).

Your understanding of MVP is probably less limited than mine--I
assumed it was a riff on MVC.  Anyway, couldn't you design an MVP
framework to include "I'm done paying attention to changes" events,
and use onUnload to trigger them when the presenter is using a widget
and use some other means when it's using something besides a widget?
Maybe we've drifted off into the weeds...

Ian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to