PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/branches/version1.x/test/data/memberof.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 36 lines | 16 code | 5 blank | 15 comment | 0 complexity | 3255aa675c8094fa1f938780ea44c232 MD5 | raw file
 1// nested constructors
 2/** @constructor */
 3function ShapeFactory() {
 4	/** @constructor */
 5    this.SquareMaker = function(size) {
 6    	/** @constructor */
 7        this.Square = function(s) {
 8        	/** The size. */
 9            this.size = s;
10            this.display = function() {
11                alert("square: "+s);
12            }
13        }
14    }
15}
16
17/** @class */
18function Circle(){}
19/** The radius. */
20Circle.prototype.radius = 1;
21
22/**
23	@member Circle
24*/
25getDiameter = f1;
26
27/**
28	@memberOf Circle
29*/
30getCircumference = f2;
31
32String.prototype.toWords = function() {
33}
34
35// would be called like this:
36// var s = new new new ShapeFactory().SquareMaker(4).Square(2);