Extend a jQuery plugin
<p>We have some jQuery plugins which i don't want to touch too much, but i want my frontend developers to have some extra functionality. </p>

<p>For example, this is one i want to extend, the slideshow plugin: </p>

<p>You can instantiate it like this:</p>

<pre><code>$("#someDiv").slider({
        width: 940,
        height: 528,
        effect: 'fade'
      });
</code></pre>

<p>And that's about all what you can do with it (i know there are slider that can do more, but this is just an example. </p>

<p>I see that this plugin internally has a few methods like, ShowImage, PreLoadImages etc and i what i want is to add something to ShowImage which we can control in this form: </p>

<pre><code>$("#someDiv").slider({
        width: 940,
        height: 528,
        effect: 'fade'
      }).whenimagehasloaded({
        //when this is whenimagehasloaded is used, i want the internal ShowImage to fire this event / call this method.
        //possibility for frontend developer to add some logic
      });
</code></pre>

<p>This is not really my area of expertise, so i'm not even sure whether i'm asking for something that should be called an extension? or adding an overridable method or .. ? </p>

<p>Again, i don't want to touch the original code too much, but of course if i have to add a little to make this work i will do so. </p>

<p>Thanks for helping. </p>
