var myfunction = function (obj1){
init = function(){
///object operation
func1();
}
func1 = function(){
some operation
}
}
In the above code there is a function called func1, defined inside myfunction operates on some object. Inside myfunction(), func1() is called to change the object, I want to call this object directly.