mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
42 lines
836 B
JavaScript
42 lines
836 B
JavaScript
// /** A function that does stuff. */
|
|
// function doStuff() {
|
|
// }
|
|
//
|
|
// /**
|
|
// * Shape is an abstract base class. It is defined simply
|
|
// * to have something to inherit from for geometric
|
|
// * subclasses
|
|
// * @constructor
|
|
// */
|
|
// function Shape(color){
|
|
// this.color = color;
|
|
// }
|
|
//
|
|
// /**
|
|
// * Get the name of the color for this shape
|
|
// * @returns A color string for this shape
|
|
// */
|
|
// Shape.prototype.getColor = function() {
|
|
// return this.color;
|
|
// }
|
|
//
|
|
// var x,
|
|
// /** @return {number} */
|
|
// getx = function(){},
|
|
// y;
|
|
//
|
|
|
|
ShapeFactory.prototype = {
|
|
util: {
|
|
/**
|
|
* Creates a new {@link Shape} instance.
|
|
* @return A new {@link Shape}
|
|
* @type Shape
|
|
*/
|
|
createShape: function() {
|
|
/** Track the most recent shape created. */
|
|
this.lastShape = new Shape();
|
|
return this.lastShape;
|
|
}
|
|
}
|
|
} |