Menu

#525 symbol browser breaks after a property with negative value

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

geany 0.20 (svn >= r5106) (built on Jul 24 2010 with GTK 2.20.1, GLib 2.24.1), Ubuntu 10.04

(Language: javascript)
When adding a property with a negative value, the listing of the following properties of a object in the symbol browser breaks.

// the following works, shows Members: City.army, City.cord, City.date,
// City.index, City.name, City.note, City.res, City.server
// Functions: City.testfunction
function City() {
this.army = new Array();
}

City.prototype =
{
index: 1,
testfunction: function(value1){
},
server: "",
name: "",
date: 1,
note: "",
cord: "XXX-YYY",
res: null,
army: null
}

// the following shows only City.index under Members (therefore
// also no auto completion)
// also no City2.testfunction

function City2() {
this.army = new Array();
}

City2.prototype =
{
index: -1, //note: negative -1
testfunction: function(value1){
},
server: "",
name: "",
date: 1,
note: "",
cord: "XXX-YYY",
res: null,
army: null
}

// the following shows only Members: City.date, City.index, City.name,
// City.server
// shows Functions: City3.testfunction
function City3() {
this.army = new Array();
}

City3.prototype =
{
index: 1, //note: positive again
testfunction: function(value1){
},
server: "",
name: "",
date: -1, //note: negative 1
note: "",
cord: "XXX-YYY",
res: null,
army: null
}

Discussion

  • Colomban Wendling

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

Log in to post a comment.