← Back to team overview

launchpad-dev team mailing list archive

Re: YUI sandboxes, event propagation and global namespaces

 

On Tue, 31 Jan 2012, Deryck Hodge wrote:

> On Tue, Jan 31, 2012 at 6:29 AM, Richard Harding
> <rick.harding@xxxxxxxxxxxxx> wrote:
> > https://pastebin.canonical.com/59124/
> 
> That's a nice pattern for this kind of problem, but just to be clear,
> the call site could have been fixed without creating a new module, but
> *just* including "lp.client" in the use modules, right?
> 
> Cheers,
> deryck

yes, I'm sorry. I just assumed what Ian had didn't work and that the reason
it didn't was because he had blind subscribe/publishers on both ends so I
jumped right into the easiest way to bring them together without making
them know too much of each other. You're right, in the example in the
email it includes lp.client.

I did find the case in the file I show in the diff "specifications-index.pt"
 where the YUI block doesn't include lp.client. In reading Ian's email, it
didn't sound like he wanted to specifically include lp.client since it
wasn't doing lp.client specific code, but was more looking for a general
event. That's why I didn't name it lp.client.event, but lp.cache.event
since both ends are specifically looking to fire/watch for events around
the lp.cache.

-- 

Rick Harding

Launchpad Developer
https://launchpad.net/~rharding
@mitechie


Follow ups

References