/branches/version1.x/test/data/prototypes_props.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 16 lines · 9 code · 3 blank · 4 comment · 0 complexity · 504e93982a88725a1c2c0185e9b230a4 MD5 · raw file

  1. function Person(){
  2. }
  3. Person.prototype.setName = function(name) {
  4. /** the Person's name */
  5. this.name = name;
  6. /** get the Person's name */
  7. this.getName = function(){return name};
  8. }
  9. /** @constructor */
  10. Person.prototype.Child = function(age) {
  11. /** the Child's age */
  12. this.age = age;
  13. }