Title: Minor View change *suggestion* Post by: riafan on May 17, 2008, 06:57:43 I've been cleaning up my code (hoping to post it soon) on dynamically loaded modules.
First off, I realize the View can be sub-classed easily - this is just a suggestion to avoid the need of doing so. I came across the following function in the View class
This works great when the mediator has a static lists of interests. However when that list is dynamic some problems can arise. My request is for the addition of a simple check that var observers:Array = observerMap[ notificationName ] as Array; didn't return null...
What do you think? Title: Re: Minor View change *suggestion* Post by: puremvc on May 18, 2008, 07:24:59 I'm a little concerned. When and how are you embuing a Mediator with a dynamic list of interests?
-=Cliff> Title: Re: Minor View change *suggestion* Post by: riafan on May 19, 2008, 09:35:57 Cliff,
I should have let the dust settle before posting. Please disregard the request :) (This was to support the change in a dynamically loaded modules "notification Interests" over time - I've settled for a much cleaner approach). Title: Re: Minor View change *suggestion* Post by: puremvc on May 19, 2008, 10:43:19 Ah, gotcha, this would be the approach you ended up with in your recent post http://dluminosity.com/blog/2008/05/19/dynamic-flex-modules-with-puremvc/
-=Cliff> Title: Re: Minor View change *suggestion* Post by: riafan on May 19, 2008, 11:25:04 Yes, I settled on inbound / outbound notification mappings being defined statically. This turned out to be a better approach.
thanks again!! |