Displaying 1 result from an estimated 1 matches for "important_number".
2008 Jan 20
1
Prototype.js with jsDoc-toolkit?
...using
Prototype 1.6-style classes and inheritance.
For example, if I do something like:
<code>
/**
* @class Foo
* @extends Bar
*/
Foo = Class.create(Bar, {
/**
* @constructor
*/
initialize : function() {
/**
* An important number
* @type Number
*/
this.important_number = 9999;
// do more stuff
},
/**
* This function does something else
* @return {Object} Something
*/
anotherFunction : function() {
...snip...
});
</code>
It has some problems:
1. I have to declare it as @class.
2. ''Bar'' is not recognized as the superclass....