JavaScript chains code assist doesn't work

Bug Reports and Fixes
Post Reply
sergey_che
Posts: 14
Joined: Tue Mar 11, 2008 10:04 am

JavaScript chains code assist doesn't work

Post by sergey_che » Sat Apr 19, 2008 12:36 pm

Here is a test case:

Code: Select all

function Sample(){}

Sample.prototype = {
	/** @return {Sample} */
	add: function(){},

	/** @return {Sample} */
	remove: function(){},

	/** @return {Sample} */
	append: function(){}
}

var a = new Sample();
a.add(). // <-- code assist doesn't work
var b = a.add();
b. // <-- code assist works
This is especially annoying when using jQuery.

Also, I can't see "Reload" button in JavaScript profiles (which is shown in JavaScript library demo), so I have to restart Eclipse each time after modifying my JS profile.
I'm using MacOS 10.5

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Sat Apr 19, 2008 1:12 pm

Hi, this is a bug in version 1.6.11, please download this one http://www.agpad.com/downloads/com.spket.js_1.6.11.jar and replace the one in your computer.

As for reload profile, in "Project Explorer", select the project, then press key Ctrl+Shift+F5, or using context menu, then choose Reload JavaScript Profile

sergey_che
Posts: 14
Joined: Tue Mar 11, 2008 10:04 am

Post by sergey_che » Sat Apr 19, 2008 1:28 pm

Thanks for the fast response, everything works fine now :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests