Community
Participate
Working Groups
Some of our javascript-files yield parse-errors with the (default installed) javascript validation in Eclipse Ganymede. This was in a PDT-"2.0", project with the "Eclipse IDE for Java EE Developers"-edition of Ganymede, enhanced with the latest "DLTK Core Frameworks 1.0 Integration build" and WTP 3.0.2 Some of the errors are in code like this: var preloadImages = {}; function preload(label, url, overwrite) { if (overwrite || !(label in preloadImages)) // The error: "The operator in is undefined for the argument type(s) any, ___anonymous866_867" { preloadImages[label] = new Image(); // The error: "Image cannot be resolved to a type" // It also doesn't know about 'Option' preloadImages[label].src = url; } } The full javascript is in the URL-field. There are several other errors in that file, of which most aren't errors according to the major browsers. Enabling the Firefox-library for that project doesn't help, adjusting any of the settings seems to be useless. So either I'm missing something, or the validator is somewhat buggy. Apart from that, it doesn't seem to be possible to disable the javascript-validation afterwards in a project?
Fixed the // The error: "The operator in is undefined for the argument type(s) any, ___anonymous866_867" for WTP 3.0.4 The Image needs to be added to the mozilla library.
Created attachment 133645 [details] Added Image and Option ot the base browser library
Can be patched in 3.0.5 and 3.1.
Applied, thanks, Chris.
*** Bug 265712 has been marked as a duplicate of this bug. ***