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

/tags/jsdoc_toolkit-2.0.1/jsdoc-toolkit/app/test/prototype.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 17 lines | 10 code | 4 blank | 3 comment | 0 complexity | 548ed954b7bfa4bf1f6075af40a81a30 MD5 | raw file
 1/** @constructor */
 2function Article() {
 3}
 4
 5Article.prototype.init = function(title) {
 6	/** the instance title */
 7	this.title = title;
 8	
 9	/** the static counter */
10	Article.counter = 1;
11}
12
13a = new Article();
14a.Init("my title");
15
16print(a.title);
17print(Article.counter);