Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JavaScript Outline guidelines
JavaScript Outline guidelines [message #671362] Tue, 17 May 2011 15:58 Go to next message
Arin Lipman is currently offline Arin Lipman
Messages: 17
Registered: May 2010
Junior Member
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
Re: JavaScript Outline guidelines [message #717890 is a reply to message #671362] Mon, 22 August 2011 16:20 Go to previous message
Arin Lipman is currently offline Arin Lipman
Messages: 17
Registered: May 2010
Junior Member
Anyone else seeing this? I'm still seeing it in Indigo...
Previous Topic:JavaScript Outline types
Next Topic:Unwanted Javascript errors
Goto Forum:
  


Current Time: Sun Oct 26 06:16:26 GMT 2014

Powered by FUDForum. Page generated in 0.02395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software