PageRenderTime 18ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/jsdoc_toolkit-2.3.2/jsdoc-toolkit/app/plugins/frameworkPrototype.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 16 lines | 14 code | 1 blank | 1 comment | 1 complexity | 25fea24c4e746dd82ff1d4ba1701a042 MD5 | raw file
  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. insert = insert.replace(/\*\/\/\*\*/g, "\n");
  11. /*DEBUG*///print("insert is "+insert);
  12. classCreator.addComment.data = insert;
  13. }
  14. }
  15. );