| branch | jsdoc |
| changeset 520 | fe008e95a716 |
| parent 519 | 46e21d060650 |
| child 521 | df716b99c5bb |
| child 522 | 2b1a07f1d797 |
| 519:46e21d060650 | 520:fe008e95a716 |
|---|---|
1 /** @constructor */ |
|
2 function Article() { |
|
3 } |
|
4 |
|
5 Article.prototype.init = function(title) { |
|
6 /** the instance title */ |
|
7 this.title = title; |
|
8 |
|
9 /** the static counter */ |
|
10 Article.counter = 1; |
|
11 } |
|
12 |
|
13 a = new Article(); |
|
14 a.Init("my title"); |
|
15 |
|
16 print(a.title); |
|
17 print(Article.counter); |