Hi Gavin,

On Wed, Sep 16, 2009 at 1:44 PM, Gavin Panella
<[email protected]> wrote:
<snip>
> Thankfully the fix is reasonably obvious: change the bug index page to
> use fewer .use(...)  blocks. This will also make the page cleaner and
> shorter too, so it's not a nasty workaround.

One thing that I've mentioned on IRC and didn't get carried over is
that it is possible to save the result of the first YUI().use() into a
variable and reuse that across multiple function calls. Eg:

  Y = YUI().use(...);
  some_function(Y);
  another_function(Y);

-- Sidnei

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to