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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

android - Facebook Login CallbackManager FacebookCallback called onCancel() every time -