NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Nagigator on JS files


Joined: 21 Oct 2007
Posts: 14
Reply with quote
Create a new empty JS file and then paste this in:-

Code:
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:-

Code:
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.
View user's profileFind all posts by AjKSend private message


Joined: 21 Oct 2007
Posts: 14
Reply with quote
btw, if you want to see a good example of Code Navigator having problems, download the open source version of EXTJS 4 and just open the file ext-all-debug.js and look at the code navigator.
View user's profileFind all posts by AjKSend private message


Joined: 11 Aug 2006
Posts: 15
Reply with quote
Yes I have waited a long time for Nusphere to finally include proper Javascript Code Completion and Navigation. Im still running on 5.9 since my subscription ran out and I really was considering renewal if the Javascript completion with ExtJS would work. Unfortunately the eval version does not support Code Completion and Navigation with ExtJS correctly. What a pitty. Sad
View user's profileFind all posts by thesilentmanSend private message
Code Nagigator on JS files
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic