JavaScript Outline guidelines [message #671362] |
Tue, 17 May 2011 11:58  |
Eclipse User |
|
|
|
Hello Y'all,
I'm working with WTP in Helios, and I'm hitting an issue with the outline view for a JavaScript file. I'm building an object which has functions within, but they are being interpreted as variables as well as functions. I'm using Prototype's bind function to ensure that they are called with the proper scope, and it seems that the outline parser interprets the call to bind to make it into a variable instead of a function.
Here's a shortened version of my code:
var foo = function(){
this.func = function() { };
this.func = this.func.bind(this);
return this;
};
This produces an outline that has
foo (Class)
-- func:any
-- foo() (Constructor)
-- func()
foo()
I've tried to use JSDOC @ignore to ignore the line with the bind, and I've tried to move the bind inline with the function definition, but neither helps.
Anyone have some advice?
Thanks,
-Arin
|
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds