I have a function defined in jquery closure and called by another function in the same closure. Could I override the function being called without changing the closure itself. See the code for example
(function($){
function Myfunction(value)
{
//do something with the value
}
$('a').live('click',function(){
MyFunction($(this).val())
});
}(JQuery));
is there a way I can override Myfunction so that overriden copy of Myfuntion is called inside event handler.
You can’t. Functions defined inside closures are private – and they: