Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Is the jsdoc @this unsupported?
icon5.gif  Is the jsdoc @this unsupported? [message #734755] Sun, 09 October 2011 15:52 Go to next message
Shedokan  is currently offline Shedokan
Messages: 2
Registered: October 2011
Junior Member
I have been trying to use @this from JsDoc, to let JSDT know that the variable 'self' really means 'this'.

/**
 * MyClass
 * 
 * @this {me}
 */
var MyClass = function(){
    var self = this;
    me.parameter = parameter;
};

var a = new MyClass();
a.parameter = 'something'; // Doesn't autocompletes


Is this supported? and if it isn't why not?

Thanks.

[Updated on: Sun, 09 October 2011 17:24]

Report message to a moderator

Re: Is the jsdoc @this unsupported? [message #734809 is a reply to message #734755] Sun, 09 October 2011 22:51 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
Registered: July 2009
Senior Member
There's no such tag in JSDoc 2 liasted at http://code.google.com/p/jsdoc-toolkit/wiki/TagReference . No work has been done to support JSDoc 3, yet, nor has anyone put forth a quality patch implementing it.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Is the jsdoc @this unsupported? [message #734925 is a reply to message #734809] Mon, 10 October 2011 08:41 Go to previous message
Shedokan  is currently offline Shedokan
Messages: 2
Registered: October 2011
Junior Member
Oh, I thought that if it's in wikipedia then it must be part of "modern JSDoc" like stated there.

Thank you for your answer.
Previous Topic:utf-8 encoding
Next Topic:Re: How make correct configuration for JavaScript work
Goto Forum:
  


Current Time: Wed Aug 27 21:19:19 EDT 2014

Powered by FUDForum. Page generated in 0.01681 seconds