var dispatcher = require('../dispatcher');
var Empty = React.createClass({
  render: function() {
    return <div></div>;
  }
});

module.exports = {
  render: require('./render'),
  builtInStore: require('./built-in-store'),
  actionBuilder: require('./action-builder'),
  clear: require('./clear'),
  mountedComponents: require('./mounted-components'),
  changeMode(newMode, previousMode){
    var mode = {newMode: newMode, previousMode: previousMode};
    dispatcher.handleViewAction({data: {mode: mode}, type: 'update'});
  },
  changeRoute(newRoute){
    dispatcher.handleViewAction({data: {route: newRoute}, type: 'update'});
  },
  clearCartridge(){
    dispatcher.handleViewAction({
        data: {
          cartridgeComponent: {component: Empty},
          summaryComponent: {component: Empty},
          actions: {primary: [], secondary: []}
        },
        type: 'update'
      });
  }
};

var dispatcher = require('../dispatcher');
var Empty = React.createClass({
  render: function() {
    return <div></div>;
  }
});

module.exports = {
  render: require('./render'),
  builtInStore: require('./built-in-store'),
  actionBuilder: require('./action-builder'),
  clear: require('./clear'),
  mountedComponents: require('./mounted-components'),
  changeMode(newMode, previousMode){
    var mode = {newMode: newMode, previousMode: previousMode};
    dispatcher.handleViewAction({data: {mode: mode}, type: 'update'});
  },
  changeRoute(newRoute){
    dispatcher.handleViewAction({data: {route: newRoute}, type: 'update'});
  },
  clearCartridge(){
    dispatcher.handleViewAction({
        data: {
          cartridgeComponent: {component: Empty},
          barContentLeftComponent: {component: Empty},
          summaryComponent: {component: Empty},
          actions: {primary: [], secondary: []}
        },
        type: 'update'
      });
  }
};

Add the left bar in the clear cartrige.
[application] Add the left bar in the clear cartrige.
