jQuery: extending, adding a new function and building a plug-in?
<p>Today, my only pressing question about jQuery is about the when to use <code>jQuery.extend()</code> and, <code>jQuery.fn</code> (which is used for plug-ins). Basil Goldman seems to have an explanation in “<a href="http://blogs.microsoft.co.il/blogs/basil/archive/2008/09/22/defining-your-own-functions-in-jquery.aspx" rel="nofollow">Defining your own functions in jQuery</a>” but for some reason I’m still not satisfied that I have the best information. Once we start to work with <code>jQuery.fn</code> we must consider whether we should just build a full-blown plug-in. This implies three issues: extending, adding a new function and building a plug-in. There should be an explanation that coheres all three. Is this worthy of an explanation and do we have one?</p>
