/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
- // prototypes
- /** @constructor */
- function Article() {
- }
- Article.prototype = {
- /** Get the title. */
- getTitle: function(){
- }
- }
- var Word = function(){}
- Word.prototype = String.prototype;
- /** @constructor */
- function Paragraph(text){
-
- }
- /** The lines of text. */
- Paragraph.prototype.lines = []
- /** Get the lines. */
- Paragraph.prototype.getLines = function() {
-
- }
- /** this whole thing should be ignored */
- Paragraph.lines.prototype = new Array(1);
- /** set the page */
- Article.prototype.page = function(n) {
- /**@scope Article.page*/
- return {turn: function(){}}
- }(42);