PageRenderTime 20ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/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 */
  2. function Article() {
  3. }
  4. Article.prototype.init = function(title) {
  5. /** the instance title */
  6. this.title = title;
  7. /** the static counter */
  8. Article.counter = 1;
  9. }
  10. a = new Article();
  11. a.Init("my title");
  12. print(a.title);
  13. print(Article.counter);