X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=jsdoc-toolkit%2Fapp%2Ftest%2Fconstructs.js;fp=jsdoc-toolkit%2Fapp%2Ftest%2Fconstructs.js;h=cca5dbd38e873d7030253288da9e71c3b9fee919;hb=629a09aeb02dce06c406a638b4ece39adc83d2e3;hp=0000000000000000000000000000000000000000;hpb=f8e02b3c7ea1ccbf567bbeda1ceaa959b769dd43;p=dygraphs.git diff --git a/jsdoc-toolkit/app/test/constructs.js b/jsdoc-toolkit/app/test/constructs.js new file mode 100644 index 0000000..cca5dbd --- /dev/null +++ b/jsdoc-toolkit/app/test/constructs.js @@ -0,0 +1,18 @@ +var Person = makeClass( + /** + @scope Person + */ + { + /** + This is just another way to define a constructor. + @constructs + @param {string} name The name of the person. + */ + initialize: function(name) { + this.name = name; + }, + say: function(message) { + return this.name + " says: " + message; + } + } +); \ No newline at end of file