Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360933 - Object type "Class" of the MooTools framework isn't supported
Summary: Object type "Class" of the MooTools framework isn't supported
Status: RESOLVED WONTFIX
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 05:04 EDT by Franz Steinmetz CLA
Modified: 2011-10-14 12:39 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 Franz Steinmetz CLA 2011-10-14 05:04:01 EDT
Build Identifier: I20110613-1736

The popular JavaScript framework MooTools provides the object type "Class", which offers more intuitive OOP handling for JavaScript.
If you make use of these object, methods and properties of those classes aren't parsed and thus neither shown in the Outline view nor in code completion.

Reproducible: Always

Steps to Reproduce:
Try this code. The outline only shows the ExampleClass object, but not its methods and properties.

var ExampleClass = new Class({

	surname : null,
	firstname : null,

	initialize : function(surname, firstname) {
		this.surname = surname;
		this.firstname = firstname;
	},

        changeName: function(surname, firstname) {
		this.surname = surname;
		this.firstname = firstname;
	}

});
Comment 1 Nitin Dahyabhai CLA 2011-10-14 12:39:39 EDT
Specific support for a toolkit such as this should come from a plug-in outside of JSDT itself, in keeping with our initial project proposal.