app/plugins/frameworkPrototype.js
raw| 1 | JSDOC.PluginManager.registerPlugin( |
| 2 | "JSDOC.frameworkPrototype", |
| 3 | { |
| 4 | onPrototypeClassCreate: function(classCreator) { |
| 5 | var desc = ""; |
| 6 | if (classCreator.comment) { |
| 7 | desc = classCreator.comment; |
| 8 | } |
| 9 | var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototype */" |
| 10 | |
| 11 | insert = insert.replace(/\*\/\/\*\*/g, "\n"); |
| 12 | /*DEBUG*///print("insert is "+insert); |
| 13 | classCreator.addComment.data = insert; |
| 14 | } |
| 15 | } |
| 16 | ); |