mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
jsdoc: add support for @readonly tags.
This commit is contained in:
parent
1821dcd415
commit
8887a4494c
1 changed files with 10 additions and 0 deletions
10
build/jsdoc-toolkit/app/plugins/readonly.js
Normal file
10
build/jsdoc-toolkit/app/plugins/readonly.js
Normal 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';
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
Loading…
Reference in a new issue