getting function name in which a Global object was initilized/created
<p>I have a DatePicker class, which is called from different functions at different locations with different options.</p>

<p>Now I have added a selectbox, which loads extra options for DatePicker depending on selected value.</p>

<p>on Selectbox's onchange event I want to refresh the DatePicker, with the extra options.</p>

<p>But as the DatePicker can be called from Different functions, with different options/setting
and the onChange event actually don't knows which function was lastly called, But I have a Global datapicker object.</p>

<p>Is there a way to call the Same function again which was lastely called to display DataPicker?</p>
