This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 103857 - javascript navigator: displaying ? node is not user friendly
Summary: javascript navigator: displaying ? node is not user friendly
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
: 101432 103858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-12 21:36 UTC by _ ludo
Modified: 2009-02-27 14:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ ludo 2007-05-12 21:36:26 UTC
The js navigator displays:

?
 . Main()
 . Main.prototype.show()
   . model

for a Phobos controller defined as:
library.common.define(controller, "main", function() {
    function Main() {
     }    
    Main.prototype.show = function() {
        model = {};
        library.view.render("main.ejs");
    }
    this.Main = Main;
});


I think it would be more user friendly to replace the '?' first node by
something like "function" or "library.common.define (function)" or "controller
Main".

How customizable this node test is for a Phobos controller?
Comment 1 Jan Jancura 2007-05-14 12:53:36 UTC
*** Issue 103858 has been marked as a duplicate of this issue. ***
Comment 2 Jan Jancura 2007-05-14 13:19:55 UTC
We will look at it.
Comment 3 Daniel Prusa 2007-07-10 15:14:57 UTC
*** Issue 101432 has been marked as a duplicate of this issue. ***
Comment 4 Jan Jancura 2007-08-15 23:24:14 UTC
fixed in trunk:
IDE:-------------------------------------------------
IDE: [8/16/07 12:23 AM] Committing "JavaScript Editor Support" started
Checking in JavaScript.java;
/cvs/scripting/javascript/src/org/netbeans/modules/languages/javascript/JavaScript.java,v  <--  JavaScript.java
new revision: 1.58; previous revision: 1.57
done
Checking in JavaScript.nbs;
/cvs/scripting/javascript/src/org/netbeans/modules/languages/javascript/JavaScript.nbs,v  <--  JavaScript.nbs
new revision: 1.48; previous revision: 1.47
done
IDE: [8/16/07 12:23 AM] Committing "JavaScript Editor Support" finished
Comment 5 Radim Roska 2007-09-19 13:45:07 UTC
is it really desired effect that function in ludo's example is not in navigator at all?
Comment 6 Jan Jancura 2007-09-19 20:17:59 UTC
Yes. First function has no name, and second one is hidden inside this anonymous function.
Comment 7 polan 2008-06-18 12:57:56 UTC
Verified. This works as advertised.