sbin/res/jsdoc/app/test/constructs.js
author durandn
Fri, 18 Sep 2015 14:40:25 +0200
changeset 1050 0b287ecbc2cb
parent 520 fe008e95a716
permissions -rw-r--r--
Added support for custom button texts

var Person = makeClass(
    /**
      @scope Person
    */
    {
        /**
        	This is just another way to define a constructor.
        	@constructs
        	@param {string} name The name of the person.
         */
        initialize: function(name) {
            this.name = name;
        },
        say: function(message) {
            return this.name + " says: " + message;
        }
    }
);