thirdparty/jsdoctoolkit/app/test/constructs.js
author Daniel Hans <Daniel.M.Hans@gmail.com>
Sat, 14 Nov 2009 23:58:20 +0100
changeset 3092 beeb5d111318
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Changes in tags are saved to the data store. Also, when a task is created, its arbit tags are stored. Issue 696 fixed.

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