Hello,
Say I have a jQuery plugin like $.abc = function() {}. Now I want to provide an extra module which uses the same scope as $.abc and extends its functionality. For e.g. in my abc plugin I will check if say a variable mod1 = true; if its true, then I will automatically call thoso functions of mod1.
My question is how do I write mod1 so that it can share the same namespace as my base plugin and I am able to call it from my plugin e.g. mod1.getFiles();
Thankyou for your time. Sorry if this is not very clear. I will explain again if you have any questions.
UPDATE: How do I call function test of pluginbar?
$.fn.pluginFoo = function() {
...
CALL FUNCTION TEST OF PLUGINBAR
...
};
$.fn.pluginBar = function() {
...
function test() {
alert('this is a test');
}
...
};