Extend/Overide Jquery Plugin methods

Hi all,

Can someone explain in plain terms what the best way to extend an existing plugin is. For example; ExamplePlugin has several methods one being buildData.
How can I use this plugin and add my own functions to it or get it to do extra actions after existing methods.
Would the following work;

ExamplePlugin.buildData = function(){
       this.super.buildData()
       //do extra stuff
}

Many thanks, G

How you extend a jQuery plugin depends a bit on its internal structure, and might not be possible depending on how it is put together.

You could of course modify the plugin itself or write your functionality independent of the plugin (which might be an even better option).