/tags/jsdoc_toolkit-1.3.3/test/data/prototypes.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 34 lines · 17 code · 8 blank · 9 comment · 0 complexity · e0dfb789c443d38c2572e3ad3af7b81b MD5 · raw file

  1. // prototypes
  2. /** @constructor */
  3. function Article() {
  4. }
  5. Article.prototype = {
  6. /** Get the title. */
  7. getTitle: function(){
  8. }
  9. }
  10. var Word = function(){}
  11. Word.prototype = String.prototype;
  12. /** @constructor */
  13. function Paragraph(text){
  14. }
  15. /** The lines of text. */
  16. Paragraph.prototype.lines = []
  17. /** Get the lines. */
  18. Paragraph.prototype.getLines = function() {
  19. }
  20. /** this whole thing should be ignored */
  21. Paragraph.lines.prototype = new Array(1);
  22. /** set the page */
  23. Article.prototype.page = function(n) {
  24. /**@scope Article.page*/
  25. return {turn: function(){}}
  26. }(42);