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

Bug 360933

Summary: Object type "Class" of the MooTools framework isn't supported
Product: [WebTools] JSDT Reporter: Franz Steinmetz <mail>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED WONTFIX QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.