the point of not injecting the css and whatnot when there are no lightbox
links is to spare the extra http requests. they are pointless if there
aren't any lb images on the page...

On Wed, Dec 30, 2009 at 2:15 PM, Sanford Whiteman <
[email protected]> wrote:

> > I see what you're saying - however, I still kind of think that the
> > class should be fully initiated upon the first call regardless whether
> > there are any lightbox links or not
>
> I  do  agree  with  you  (see  how  easy it is to get along once we're
> collaborating on runnable code?). I put up another Shell revision that
> contains a workaround.
>
>    http://mooshell.net/6cFmm/9/
>
> Essentially,  since the constructor returns a Lightbox no matter what,
> we look a little deeper for the most basic evidence of actual links in
> the  Lightbox,  the  Lightbox.container  property. If we don't see the
> container,  we  scrap  the  initial  box.  Just  run safeModLightbox()
> whenever you want to create/append to the box.
>
> -- S.
>
>

Reply via email to