NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
amsterdamharu
Joined: 21 May 2010 Posts: 2
|
Posted: Sat May 22, 2010 4:32 pm Post subject: javascript code completion. |
|
|
When I make javascript "objects" the code completion does not seem to work on variables:
| Code: | function waitStep(){
this.timer=null;
this.reset=function(){
clearTimeout(this.timer);
// try to insert code here: [b]this.timer[/b] control + space does not find this timer
// try to insert code here [b]this.begin[/b] control + space gives me the function
};
this.begin=function(){
this.timer=setTimeout("myCourse.nextStep()",this.timeToWait);
};
}
var myStep=new waitStep()
// [b]myStep.begin[/b] control + space finds the begin function
// [b]myStep.timer control[/b] + space gives me "no suggestions"
var myObject = {
variable: 22,
aFunction: function(){return null}
}
// [b]myObject.[/b] will list both variable and aFunction
|
I am not sure how or if this is supposed to work or was working before (I am using netbeans 6.7.1 on Ubuntu (Linux mint).
It works as I expect it to work in eclipse.
I guess I got a bit spoiled with the code completion and wonder if this is a bug or just not functioning yet. |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|