thirdparty/jsdoctoolkit/app/plugins/frameworkPrototype.js
author Sverre Rabbelier <srabbelier@gmail.com>
Mon, 02 Nov 2009 16:23:58 +0100
changeset 3073 6e100e194680
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Convert gen_app_yaml.py to optparse This allows for example the -f flag to be specified as the second argument. Also add a '-i|--interactive' flag which asks for the application name interactively.

JSDOC.PluginManager.registerPlugin(
	"JSDOC.frameworkPrototype",
	{
		onPrototypeClassCreate: function(classCreator) {
			var desc = "";
			if (classCreator.comment) {
				desc = classCreator.comment;
			}
			var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototype */"
			
			insert = insert.replace(/\*\/\/\*\*/g, "\n");
			/*DEBUG*///print("insert is "+insert);
			classCreator.addComment.data = insert;
		}
	}
);