dist/module.js
function removeAction(action, ctrl) {
      if (this.actionExists(action, ctrl)) {
        this.removeActionIcon(action, ctrl);
        delete ctrl.actionListService.actionsToIndex[action.name];
        delete ctrl.actionListService.onToggle[action.name];
        var i = ctrl.actionListService.actionsToDisplay.indexOf(action.name);
        ctrl.actionListService.actionsToDisplay.splice(i, 1);
        i = ctrl.actionListService.requiredActionsList.indexOf(action.name);
        ctrl.actionListService.requiredActionsList.splice(i, 1);
      }
    }
function removeAction(action, ctrl) {
      if (this.actionExists(action, ctrl)) {
        this.removeActionIcon(action, ctrl);
        delete ctrl.actionListService.actionsToIndex[action.name];
        delete ctrl.actionListService.onToggle[action.name];
        var i = ctrl.actionListService.actionsToDisplay.indexOf(action.name);
        ctrl.actionListService.actionsToDisplay.splice(i, 1);
        i = ctrl.actionListService.requiredActionsList.indexOf(action.name);
        ctrl.actionListService.requiredActionsList.splice(i, 1);
      }
    }
function removeAction ( action , ctrl ) { if ( this . actionExists ( action , ctrl ) ) { this . removeActionIcon ( action , ctrl ) ; delete ctrl . actionListService . actionsToIndex [ action . name ] ; delete ctrl . actionListService . onToggle [ action . name ] ; var i = ctrl . actionListService . actionsToDisplay . indexOf ( action . name ) ; ctrl . actionListService . actionsToDisplay . splice ( i , 1 ) ; i = ctrl . actionListService . requiredActionsList . indexOf ( action . name ) ; ctrl . actionListService . requiredActionsList . splice ( i , 1 ) ; } }
Removes an action from the actions menu, including its icon.
@param  {object} action  action object
@param  {object} ctrl    instance of prmActionCtrl
Removes an action from the actions menu including its icon .