Create a new empty JS file and then paste this in:-
UI.dialog.Demo_Code_Nav_Problem = function() {
var foo = function() {
return true;
}
this.bar = function() {
return true;
}
} |
Now open the Code Navigator tab and make sure "JS" is selected at the bottom.
The "tree" I get looks something like this:-
noname1.js
* function()
|--- * foo: function(): Boolean
|--- * function(): Boolean |
Why is it that "foo" appears in the Code Nav but "bar" doesn't?
I ask because I just inherited _alot_ of JS code and it's all done in the "bar" way. So my Code Nav is completely useless as it just keeps saysing: * function() and doesn't display the var name it's assigned to.
Also, one for the admins, I tried to upload a small screen grab but during the upload I got "Bad Request" so couldn't attach a file to this post.