Closed GoogleCodeExporter closed 8 years ago
The @namespace and @name tags are your friends.
/**
* A simple class that has no constructor (its constructed one time only).
* @name MyClass
* @namespace
*/
MyClass = (function()
{
var SELF = this;
/**
* Bla bla
* @name MyClass.echo
* @function
*/
var echo = function() { alert("hi"); };
SELF.echo = echo;
})();
Original comment by micmath
on 14 Mar 2010 at 8:15
A class is not a namespace. How silly to suggest to treat it like one.
Original comment by pstic...@gmail.com
on 13 Nov 2014 at 4:06
Original issue reported on code.google.com by
sean...@gmail.com
on 4 Mar 2010 at 6:38