Documentation

include MVC MVC.Animate MVC.Class MVC.Controller MVC.Controller.Action MVC.Controller.Action.Drag MVC.Controller.Action.Drop MVC.Controller.Action.EnterLeave MVC.Controller.Action.Event MVC.Controller.Action.Hover MVC.Controller.Action.Lasso MVC.Controller.Action.Selectable MVC.Controller.Action.Subscribe MVC.Controller.Comet MVC.Controller.Params MVC.Controller.Params.Drag MVC.Controller.Params.Drop MVC.Controller.Stateful MVC.Delegator MVC.Doc MVC.Element MVC.Event MVC.File MVC.History MVC.IO MVC.IO.Ajax MVC.IO.Comet MVC.IO.JsonP MVC.IO.WindowName MVC.IO.XDoc MVC.Model MVC.Model.Ajax MVC.Model.Cookie MVC.Model.JsonP MVC.Model.JsonRest MVC.Model.WindowName MVC.Model.XmlRest MVC.Native MVC.Native.Array MVC.Native.Date MVC.Native.Function MVC.Native.Number MVC.Native.Object MVC.Native.String MVC.Options MVC.Store MVC.SyntheticEvent MVC.Test MVC.Test.Assertions MVC.Test.Controller MVC.Test.Functional MVC.Test.Runner MVC.Test.Unit MVC.Timer MVC.Timer.Easings MVC.Vector MVC.View MVC.View.Helpers OpenAjax

MVC.Doc.Function

Inherits: MVC.Doc.Pair
Documents a function. Doc can guess at a functions name and params if the source following a comment matches something like:
 myFuncOne : function(param1, param2){}  //or
 myFuncTwo = function(param1, param2){} 

Directives

Use the following directives to document a function.
@function function_name                       -> Forces a function
@param {optional:type} param_name Description -> Describes a parameter
@return {type} Description                    -> Describes the return value
Add optional: for optional params. Other available directives: @plugin,@code_start

Example

/* Adds, Mr. or Ms. before someone's name
 * @param {String} name the persons name
 * @param {optional:Boolean} gender true if a man, false if female.  Defaults to true.
 * @return {String} returns the appropriate honorific before the person's name.
 *| 
 honorific = function(name, gender){

Static Methods

Prototype Methods

function_add

function_add(line) -> undefined
Sets the function's name if one can't be determined from the source
{Object} -

signiture

signiture() -> undefined
Returns the HTML signiture of the function.