aboutsummaryrefslogtreecommitdiff
path: root/tools/jsdoc-toolkit-2.4.0/app/test/prototype.js
blob: 114700837fcf49e1aa3aa28489a616bf5fde5651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** @constructor */
function Article() {
}

Article.prototype.init = function(title) {
	/** the instance title */
	this.title = title;
	
	/** the static counter */
	Article.counter = 1;
}

a = new Article();
a.Init("my title");

print(a.title);
print(Article.counter);