Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333713

Summary: [content assist] New property of the "window" does not appear in code assist pop-up
Product: [WebTools] JSDT Reporter: Eugene Ostroukhov <eostroukhov>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3 CC: thatnitind
Version: 3.2.2   
Target Milestone: 3.5.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Eugene Ostroukhov CLA 2011-01-06 19:05:51 EST
I wrote the following script:

function myfunction() {
    return "Some string!";
}
    
window.afunc = myfunction;

I do not get code assist for this new member if I write:

function run() {
    document.getElementById("test").innerHTML = window.a|<Ctrl+Space>
}

But the code will work in browser. I will get code assist proposal working as expected if I do:
Window.prototype.afunc = myfunction;

But this code does not work in browser.
Comment 1 Chris Jaun CLA 2013-08-02 10:53:34 EDT
Works in WTP 3.5.1. Checked against 7/18 build.