Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 204349 - publich method of an object reported as unknown
Summary: publich method of an object reported as unknown
Status: RESOLVED DUPLICATE of bug 99633
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Webtools.ATF (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-22 02:28 EDT by Jens Ansorg CLA
Modified: 2009-07-08 15:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Ansorg CLA 2007-09-22 02:28:04 EDT
I create a new "JavaScript project", project folder as root

I ad an empty js file

I add sample code 

var Container = new Object();
Container.property = "wert";
Container.method = function() {
	alert(this.property);
};
Container.method();

Result: 

The function method() is undefined for the type Object	js-playground	ClassDemo.js	line 6	
property cannot be resolved or is not a field	js-playground	ClassDemo.js	line 4
Comment 1 Jens Ansorg CLA 2007-09-22 02:36:35 EDT
posted in the wrong product and therefore did not find the duplicate that is already there
sorry

*** This bug has been marked as a duplicate of bug 99633 ***