Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JavaScript Outline guidelines
JavaScript Outline guidelines [message #671362] Tue, 17 May 2011 11:58 Go to next message
Eclipse UserFriend
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 12:20 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 19:37:57 EDT 2025

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

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

Back to the top