jsdoc: add support for @readonly tags.

This commit is contained in:
Jonathan Puckey 2011-05-27 13:55:59 +02:00
parent 1821dcd415
commit 8887a4494c

View file

@ -0,0 +1,10 @@
JSDOC.PluginManager.registerPlugin(
"JSDOC.readonly",
{
onSymbol: function(symbol) {
if (symbol.comment.getTag('readonly').length) {
symbol.readOnly = symbol.comment.getTag('readonly')[0] != 'false';
}
}
}
);