On Feb 17, 4:58 am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
In Spidermonkey Functions absolutely do have a name:-
var x = function y() {
console.log(arg uments.callee.n ame);
};
x();
Result: y
As for the problem of inspecting the LI, logging it should have the
effect:
console.log( li );
Garrett
[snip]
wrote:
mk83...@yahoo.c om wrote:
>
>
You have assigned a name with the above, but Firebug never shows the name.
That should not come as a surprise because a) the name is only locally
available (except in JScript) and b) functions don't have a certain name in
the greater context.
anchors[ndx].onclick = function aname() {
Firebug still lists an anonymous function. Is there a way to assign a
name?
name?
You have assigned a name with the above, but Firebug never shows the name.
That should not come as a surprise because a) the name is only locally
available (except in JScript) and b) functions don't have a certain name in
the greater context.
var x = function y() {
console.log(arg uments.callee.n ame);
};
x();
Result: y
As for the problem of inspecting the LI, logging it should have the
effect:
console.log( li );
Garrett
[snip]
PointedEars
Comment