sbin/res/jsdoc/app/test/constructs.js
author veltr
Thu, 05 Jul 2012 19:08:13 +0200
branchnew-model
changeset 924 64c2eaafe5e2
parent 520 fe008e95a716
permissions -rw-r--r--
Modifications for LDT-Platform

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