Javascript - Getting caller arguments? -
lets have similiar code this
function detail(id){ var data=dataloadmethod(id); bootbox.dialog({ // whatever }); }
now need find out function opened bootbox dialog, pretty simple, need know id argument value (inside bootbox dialog function - without passing along/editing functions) - possible find out somehow?
another approach can saving last called function name arguments somewhere, possible have piece of code automatically called before every js function execution?
thanks ideas or help!
Comments
Post a Comment