Answer the question
In order to leave comments, you need to log in
Find out the name of the property that was called?
a={
b:function(){
//узнать здесь название свойства
//arguments.callee.name не работает как как функция анонимна
}
}
Answer the question
In order to leave comments, you need to log in
She doesn't have to be anonymous, by the way:
a = {
b: function b () {}
};
As an option
var a = {
b : function(){
alert(arguments.callee.$name)
}
}
for(var n in a) a[n].$name = n;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question