jsdoc/test/fixtures/protectedtag.js
Jeff Williams e8b692b334 allow the Closure version of the protected tag to specify a type (#731)
Also adds tests for the `protected` tag.
2014-08-13 17:04:47 -07:00

21 lines
368 B
JavaScript

/** @module uid */
/** @protected */
var uidCounter = 1;
/** @protected */
var uidObjects = {
/** Root object. */
root: {}
};
/** Obtain a unique ID. */
exports.getUid = function getUid() {
return uidCounter++;
};
/** Associate an object with a unique ID. */
exports.setObjectForUid = function setObjectForUid(obj, uid) {
uidObjects[uid] = obj;
};