function testing(){ var oldfunction = OnUpdate; OnUpdate=function(id,name,value){ var newstuff; oldfunction(id,name,value); }; }