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.Controller.Action

Inherits: MVC.Class
MVC.Controller.Action is and abstract base class. Controller Action classes are used to match controller prototype functions. Inheriting classes must provide a static matches function.

When a new controller is created, it iterates through its prototype functions and tests each action if it matches. If there is a match, the controller creates a new action.

The action is responsible to callback the function when appropriate. It typically uses dispatch_closure to call functions appropriately.

Static Methods

init

init() -> undefined
If the class has provided a matches function, adds this class to the list of controller actions.

Prototype Methods

destroy

destroy() -> undefined
Disables an action.

init

init(action_name, callback, className, element, f, controller) -> undefined
Called with prototype functions that match this action.
{String} -
{} -
{} -
{} -
{Function} -
{MVC.Controller} -