Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#527 Javascript objects called "object" don't display in tab

v1.23
closed-fixed
Filetypes (68)
2
2012-09-25
2010-07-29
Anonymous
No

Javascript objects, which are functions, called "object" : don't display the part ".object" in tab, in the function list.

The keyword in Javascript for creating objects is "Object", not "object", the language is case sensitive. For example "var o = new Object();" is correct. So we can use the lowercase word, and the bug is : the word won't display in the function list.

For example, for the following code :
var myproject = {};
myproject.myclassfoo = function() {};
myproject.myclassfoo.foomethod1 = function() {};
myproject.myclassfoo.foomethod2 = function() {};
myproject.object = function() {};
myproject.object.objectmethod1 = function() {};
myproject.object.objectmethod2 = function() {};
myproject.myclassbar = function() {};
myproject.myclassbar.barmethod1 = function() {};

We see in the function list :
myproject.myclassfoo [2]
myproject.myclassfoo.foomethod1 [3]
myproject.myclassfoo.foomethod2 [4]
myproject [5]
myproject.objectmethod1 [6]
myproject.objectmethod2 [7]
myproject.myclassbar [8]
myproject.myclassbar.barmethod1 [9]

And we should see :
...
myproject.object [5]
myproject.object.objectmethod1 [6]
myproject.object.objectmethod2 [7]
...

Bug seen in Geany 0.18 in Ubuntu 10.04 LTS

Discussion


  • Anonymous
    2010-07-29

    • priority: 5 --> 2
     
  • Now fixed in Git, thanks for reporting.

     
    • labels: 790033 --> Filetypes
    • milestone: --> v1.23
    • assigned_to: nobody --> colombanw
    • status: open --> closed-fixed