How I would do it: http://jsfiddle.net/6T9p5/ the base concept is to supply a plugin interface for you class. I made the execute method receive an action so that it can route it (maybe the plugin needs to work only on specific actions). The implementation can obviously be made better, it's just a proof of concept
On Wed, Sep 1, 2010 at 1:13 AM, Ryan Florence <[email protected]> wrote: > On Aug 31, 2010, at 4:02 PM, Aaron Newton wrote: > > > If I went back and rewrote the HtmlTable stuff, I'd probably use a > plugin-style pattern, but using Refactor works fine, too. > > Can you expand on this a bit? > > I'm about to dig in to SlideShow to add some "plugins" like a navigation > piece, or a carousel, or touch events, etc. and haven't settled on how to do > it. -- Arieh Glazer אריה גלזר 052-5348-561 5561
