Problem with Javascript function inside objects on WTP 3.3.2 [message #806482] |
Sat, 25 February 2012 02:13 |
Samuel Sol Messages: 24 Registered: January 2011 |
Junior Member |
|
|
Hey guys,
Let's see if I can explain what the issue is so you can tell me if it is a bug and how to report it better. Although as the title implies it is related to Javascript, I think it was a behavior changed on WTP 3.3.1 that got rollback on 3.3.2 .
Before updating, the Outline panel of Eclipse would not "find" functions that were two level deep in an object. For example, on the below file:
//file 1
var GOBJ = {};
GOBJ.dataA = {};
GOBJ.dataB = false;
//file 2
var GOBJ;
GOBJ.functions = {};
GOBJ.functions.funcA = function(){};
GOBJ.functions.funcB = function(){};
GOBJ.functions.funcC = function(){};
Before updating to WTP 3.3.1 , the outline panel for file 2 would be empty, the only thing showing was GOBJ:___GOBJ(). After the update, the functions started appearing correctly. So the Outline would now be:
GOBJ:___GOBJ()
GOBJ.functions.funcA;
GOBJ.functions.funcB;
GOBJ.functions.funcC;
And clicking on the name would correctly send you to the line. Today I update Indigo completely, and as part of the update WTP got updated to 3.3.2 and the behavior is now the same as on 3.3.0. Now since I updated the fully Indigo\PDT package today, the problem might be somewhere else, but since it only started working on 3.3.1 I think it might be in here.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03146 seconds