﻿//Manage controls' actions.
var Actions = {
    handlers_ : {},
    
    //Adds action to the action collection
    //param: actionName (String) - unique identifier of the action
    //param: actionHandler (Function) - handler of the action
    RegisterHandler: function(actionName, actionHandler)
    {
        Actions.handlers_[actionName] = actionHandler;
    },
  
      
    GetHandler: function(actionName)
    {
        return Actions.handlers_[actionName];
    }
}