I have a function defined in a jquery closure and called by another function in the same closure. Can I override the called function without changing the closure itself. See code for example
(function($){
function Myfunction(value)
{
}
$('a').live('click',function(){
MyFunction($(this).val())
});
}(JQuery));
There is a way I can override Myfunctionso that the redundant copy Myfuntionis called inside the event handler.
source
share