On 06/11/06, Michael Geary <[EMAIL PROTECTED]> wrote: > > > http://bassistance.de/index.php/jquery-plugins/jquery-plugin-tooltip/ > > > A suggestion - perhaps you should use 'jQuery' instead of '$' > > as isn't that the convention for plugin authoring? > > The code does use jQuery instead of $. Jörn used the trick I suggested a > while back to get the best of both worlds - convenient coding with $ but not > using the global $. Note the function wrapper: > > (function($) { > // plugin code here > })(jQuery); > > -Mike
I've seen that used before, but can it have memory leak or other issues? Does it work on all modern browsers (and not so modern - IE 5), included those on PDA's etc (not that jQuery supports portable devices). What happens if 'jQuery' is undefined? _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
