thirdparty/jsdoctoolkit/app/test/constructs.js
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 26 Oct 2009 10:15:28 -0700
changeset 3061 9b1d389be2ce
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Process invite page now shows the right Role name in the page name.

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