goldfire/miniTip — pull request #9 by wolframarnold (2011-12-05 19:31:21+00:00)
Title: Allow show() callback to access options and element context for dynamically overriding content

In our app, we couldn't statically fix the content for the miniTip, instead we had a bunch of hidden div's with different contents and needed to select which div's html to use dynamically based on where the miniTip was invoked from.

To this end, I made sure that the show() callback has the "this" object context from jQuery's event handler, and I passed in the "o" objects (containing the setup options), so that the callback could modify them.

This now works for us beautifully.

-Wolf