/branches/version1.x/test/data/prototypes_props.js
JavaScript | 16 lines | 9 code | 3 blank | 4 comment | 0 complexity | 504e93982a88725a1c2c0185e9b230a4 MD5 | raw file
1function Person(){
2}
3
4Person.prototype.setName = function(name) {
5 /** the Person's name */
6 this.name = name;
7
8 /** get the Person's name */
9 this.getName = function(){return name};
10}
11
12/** @constructor */
13Person.prototype.Child = function(age) {
14 /** the Child's age */
15 this.age = age;
16}