PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/jsdoc_toolkit-2.4.0/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
 1JSDOC.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);