I'm writing a Dojo class that looks something like:
dojo.provide("my.class.name");
dojo.declare("my.class.name", null, {
myFunction: function(param) {
// ...
dojo.aValidDojoFunctionSuchAsrawXhrPost(param) {
// ...
}
// ...
}
}
I'm using Eclipse (in fact Rational Application Developer) to develop this code, but it shows yellow "warnings" wherever I have a dojo.xyz() invocation (there are three in the code above), with the text "The static function xyz(andy) from the type dojo should be accessed in a static way". However, as far I as know, this is static: and seems to match with many code samples and the Dojo docs. Is my code wrong, or is Eclipse giving me a faulty warning? In either case, do you know how I fix it?
Edit: I should probably add that the code works OK at runtime. I'm just wondering if I'm following bad practices and/or how I can get rid of the warning.