|
(no subject) [message #693650 is a reply to message #693570] |
Wed, 06 July 2011 23:50 |
|
On 7/6/2011 3:16 PM, Dagan Henderson wrote:
> Am I doing something wrong, or are the generic browser objects document,
> window and screen not recognized by the JavaScript code assist unless
> they are explicitly declared?
>
> If I type document. in a .js file, I don't get any recommendations.
> However, if I add declare document = new Document(); at the start of the
> file, it works as you'd expect.
>
> Is there a means of setting the context for the .js file or some other
> way to tell Code Assist that this file will be accessed within a
> rendered DOM document?
Assuming you're using Indigo, does the project's JavaScript>Include Path
property page's Libraries tab include the browser library? On the
Global SuperType tab, is Window set as the default?
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.08891 seconds