PageRenderTime 1ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/tags/jsdoc_toolkit-2.0.1/jsdoc-toolkit/app/test/constructs.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 18 lines | 10 code | 0 blank | 8 comment | 0 complexity | 792204f582a77aebed99be4204edf342 MD5 | raw file
 1var Person = makeClass(
 2    /**
 3      @scope Person
 4    */
 5    {
 6        /**
 7        	This is just another way to define a constructor.
 8        	@constructs
 9        	@param {string} name The name of the person.
10         */
11        initialize: function(name) {
12            this.name = name;
13        },
14        say: function(message) {
15            return this.name + " says: " + message;
16        }
17    }
18);