I have two jquery functions (parent function and override function)
parent function:
( function ( $ )
{
var one = null;
var two = {};
$.fn.method = function(){
// parent code;
}
})( jQuery );
OverRide function:
( function ( $ )
{
$.fn.method = function(){
// override code;
}
})( jQuery );
which is working as expected. but when i try to access the variable one or two, i can't. Do u know why? is there any option to access the variable one and two from override function without modifying the parent?
Note : in my case parent and override are two seperate js files merged to one common js while put build via ant.