code: function ActionProvider(dispatcher){
  
      this.action1 = function(data){
          console.log("Action 1");
          // this way, the dispatcher establishes dynamically the action binding.
          dispatcher.dispatch('action1', data);
      };
  
      this.action2 = function(data){
          console.log("Action 2");
          dispatcher.dispatch('action2', data);
      }
  }
docs: The full flux concept foresees a separation of actions and dispatcher Here we create an action provider using the more dynamic Dispatcher.dispatch method.