thirdparty/jsdoctoolkit/app/test/constructs.js
author Sverre Rabbelier <srabbelier@gmail.com>
Mon, 02 Nov 2009 16:13:32 +0100
changeset 3072 edae0fb956c9
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Added tag v0-5-20091102 for changeset d11bb8ba0d23

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