/trunk/jsdoc-toolkit/app/test/prototype.js
JavaScript | 17 lines | 10 code | 4 blank | 3 comment | 0 complexity | 548ed954b7bfa4bf1f6075af40a81a30 MD5 | raw file
- /** @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);