How can I document the following JavaScript code example with dojo.mixin
, so that Eclipse (version 4.5.2) shows the functions from SomeClass1
and SomeClass2
in the Outline View?
var de = de || {};
de.namespace1 = de.namespace1 || {};
de.namespace1.namespace2 = de.namespace1.namespace2 || {};
/**
* @param nodeId
* @param config
*
* @constructor
* @namespace de.namespace1.namespace2.SomeClass1
*/
de.namespace1.namespace2.SomeClass1 = function(nodeId, config) {
var subClassConfig = {
prop1: "foo",
prop2: "bar"
};
return dojo.mixin(new de.namespace1.namespace2.SomeClass2(nodeId, config, subClassConfig), {
/** @private */
var1 : null,
/**
* @public
* @memberOf SomeClass1
*/
init : function() {
// TODO
}
});
};
How can I get e.g. the init
function to be shown in the Eclipse outline view?
What version of Eclipse are you running? I'm running Mars and that piece of code looks fine in the outline here:
Maybe it helps, but I have the "Dojo Web Tools" from IBM installed.