thirdparty/jsdoctoolkit/app/test/prototype_oblit_constructor.js
author Mario Ferraro <fadinlight@gmail.com>
Sun, 25 Oct 2009 19:15:44 +0000
changeset 3041 c8f47f0b6697
permissions -rw-r--r--
JSDocToolkit 2.3.0 added to create documentation for JS files.

/** @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);