PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/jsdoc-toolkit/app/test/prototype_oblit_constructor.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 24 lines | 15 code | 5 blank | 4 comment | 0 complexity | 1286e68417d4c0763e7a8b33c94d4696 MD5 | raw file
 1/** @constructor */
 2function Article() {
 3}
 4
 5Article.prototype = {
 6	/** @constructor */
 7	Title: function(title) {
 8		/** the value of the Title instance */
 9		this.title = title;
10	},
11	
12	init: function(pages) {
13		/** the value of the pages of the Article instance */
14		this.pages = pages;
15	}
16}
17
18f = new Article();
19f.init("one two three");
20
21t = new f.Title("my title");
22
23print(f.pages);
24print(t.title);