PageRenderTime 28ms CodeModel.GetById 24ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/jsdoc_toolkit-1.4.0/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
 3/** @constructor */
 4function Article() {
 5}
 6
 7Article.prototype = {
 8	/** Get the title. */
 9	getTitle: function(){
10	}
11}
12
13var Word = function(){}
14Word.prototype = String.prototype;
15
16/** @constructor */
17function Paragraph(text){
18	
19}
20/** The lines of text. */
21Paragraph.prototype.lines = []
22/** Get the lines. */
23Paragraph.prototype.getLines = function() {
24	
25}
26
27/** this whole thing should be ignored */
28Paragraph.lines.prototype = new Array(1);
29
30/** set the page */
31Article.prototype.page = function(n) {
32	/**@scope Article.page*/
33	return {turn: function(){}}
34}(42);