Answer the question
In order to leave comments, you need to log in
What is the correct way to add functionality to an object and describe it in jsdoc?
There is a file with the following structure
var API = (function(){
....
return {
method1: function(){...},
method2: function(){...},
...
};
})();
API.myMethod = function(){...};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question