[ 14 posts ] Go to page Previous1, 2

Marc

YUI Contributor

  • Offline
  • Profile

Re: Not working in 3.1.1

Post Posted: Thu Jun 03, 2010 8:03 am
+0-
Hi Eric,

Let me start by saying the module is great and indeed very small. I just don't have much use for outside events, and use a lot of other yui stuff. Basically, I'm trying to shave off every Kb I can.

Do you have a suggestion on how to capture the render Event? I need to add rounded corners and that event seems like the best time to do it?

Cheers,

Marc

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Not working in 3.1.1

Post Posted: Thu Jun 03, 2010 8:24 am
+0-
Marc,

You could always use my older, deprecated, sand-alone OverlayModal Plugin: http://yuilibrary.com/gallery/show/overlay-modal which doesn't use outside-events.

Marc

YUI Contributor

  • Offline
  • Profile

Re: Not working in 3.1.1

Post Posted: Thu Jun 03, 2010 8:50 am
+0-
Yeah, I was thinking about that too. But I saw that 'supersedes' statement in the source. Made me think it might be auto overwritten by YUI during the loading process. But didn't look into that

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile

Re: Not working in 3.1.1

Post Posted: Thu Jun 03, 2010 10:02 am
+0-
The supersedes means if gallery-overlay-modal is already loaded on the page, then gallery-overlay-extras comes along, overlay-extras will be used in favor of overlay-modal.

if you're lazy-using modules via Y.use (inside your YUI instance) and you created something like:

Overlays

Click here to see the revision history on this Gist.

The following would occur:

If you clicked #foo, gallery-overlay-modal would load and be used. Then if you clicked #bar, gallery-overlay-extras would be loaded and used for both the modal and autohide plugins.

But, If you clicked #bar first, gallery-overlay-extras would be loaded and used. Then if you clicked #foo, gallery-overlay-modal would not be loaded nor used, because gallery-overlay-extras supersedes it. I think this is the functionality you would want, this also helps shave bytes by only loading the code used to create overlays when they are needed. Since most of the time you do not need the Overlay code at page-load time you can defer the loading of the modules until you actually need them using Y.use.

You may also be interested in my Component Manager which makes lazy-loading of module and on-demand creation of instances nice and easy.
Eric Ferraiuolo
  [ 14 posts ] Go to page Previous1, 2
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum