mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-14 01:05:47 -04:00
initial commit for GitHub
This commit is contained in:
commit
2e423d9517
155 changed files with 31749 additions and 0 deletions
20
jsdoc_toolkit-2.3.3-beta/app/plugins/commentSrcJson.js
Normal file
20
jsdoc_toolkit-2.3.3-beta/app/plugins/commentSrcJson.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
JSDOC.PluginManager.registerPlugin(
|
||||
"JSDOC.commentSrcJson",
|
||||
{
|
||||
onDocCommentSrc: function(comment) {
|
||||
var json;
|
||||
if (/^\s*@json\b/.test(comment)) {
|
||||
comment.src = new String(comment.src).replace("@json", "");
|
||||
|
||||
eval("json = "+comment.src);
|
||||
var tagged = "";
|
||||
for (var i in json) {
|
||||
var tag = json[i];
|
||||
// todo handle cases where tag is an object
|
||||
tagged += "@"+i+" "+tag+"\n";
|
||||
}
|
||||
comment.src = tagged;
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue