/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
- function Person(){
- }
- Person.prototype.setName = function(name) {
- /** the Person's name */
- this.name = name;
-
- /** get the Person's name */
- this.getName = function(){return name};
- }
- /** @constructor */
- Person.prototype.Child = function(age) {
- /** the Child's age */
- this.age = age;
- }