JavaScript code completion in Eclipse Juno not working

accpimp

New Member
\[code\]var P = P || {}; // create global container object if it does not existP.file = { name : null, type : null, size : null, data : null};\[/code\]When I type \[code\]P.\[/code\] in Eclipse, I don't get \[code\]P.file\[/code\] as auto completion suggestion. Is there anything wrong with this style of creating objects in JavaScript? Or at least wrong with respect to code completion in Eclipse?More info: This is a Java EE project with JavaScript support enabled. For global functions such as \[code\]function doSomething() { ... }\[/code\] code completion works when I type \[code\]doSo\[/code\] and hit Ctrl+Space.
 
Back
Top