sbin/res/jsdoc/app/test/constructs.js
author durandn
Tue, 22 Sep 2015 12:04:36 +0200
changeset 1061 7d22bfd6b73b
parent 520 fe008e95a716
permissions -rw-r--r--
CreateAnnotation: now triggering events for hiding and showing widget after submitting to make it easier for other widgets to catch these events

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;
        }
    }
);