I need extend a plugin from another, who is the best way for it???
The extension will be overwrite methods and add any settings too.
I has a foo plugin that work well, now... I need extend another plugin bar from foo.
I write the following code, but is not work:
(function($) {
var methods = {
'onErrors': function (o, otherErrors) {
}
}
$.extend(true, $[foo][bar].prototype, extensionMethods);
})(jQuery);
Now, how should be write a plugin extension??
Thanks