Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333713 - [content assist] New property of the "window" does not appear in code assist pop-up
Summary: [content assist] New property of the "window" does not appear in code assist ...
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.5.1   Edit
Assignee: Chris Jaun CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 19:05 EST by Eugene Ostroukhov CLA
Modified: 2013-08-02 10:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.