/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
- // nested constructors
- /** @constructor */
- function ShapeFactory() {
- /** @constructor */
- this.SquareMaker = function(size) {
- /** @constructor */
- this.Square = function(s) {
- /** The size. */
- this.size = s;
- this.display = function() {
- alert("square: "+s);
- }
- }
- }
- }
- /** @class */
- function Circle(){}
- /** The radius. */
- Circle.prototype.radius = 1;
- /**
- @member Circle
- */
- getDiameter = f1;
- /**
- @memberOf Circle
- */
- getCircumference = f2;
- String.prototype.toWords = function() {
- }
- // would be called like this:
- // var s = new new new ShapeFactory().SquareMaker(4).Square(2);