aboutsummaryrefslogtreecommitdiff
path: root/tools/jsdoc-toolkit-2.4.0/app/test/prototype_oblit_constructor.js
blob: 9248248644249a7031798ecce00a59bd4d82280f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @constructor */
function Article() {
}

Article.prototype = {
	/** @constructor */
	Title: function(title) {
		/** the value of the Title instance */
		this.title = title;
	},
	
	init: function(pages) {
		/** the value of the pages of the Article instance */
		this.pages = pages;
	}
}

f = new Article();
f.init("one two three");

t = new f.Title("my title");

print(f.pages);
print(t.title);