So I have a construction like below (this is dummy code). Inside of function assigned to someFunction variable I'd like to get actual name of variable that this function is assigned to.
Expected result of return would be string "someFunction".
Thank you for your expertise!
I've tried this; and have no other clue yet.
var someFunction = (function(){
"use strict";
var f = this.FunctionName; //dummy code
return f;
}
expected to have "someFunction" string as return
var onLoad_123123= (function(GlideAjax,g_form,GlideDialogWindow,GlideRecord,window,document,$,jQuery,$$,$j,$F,gel,undefined){
"use strict";
function onLoad_123123() {
retun 'onLoad_123123'; //dummy code here - have to get it dynamically
}
Hope that explains it better