src/js/ApplicationController.js
function doNewDocument() {
    // close old document first
    var doc = mindmapModel.getDocument();
    doCloseDocument();

    var presenter = new mindmaps.NewDocumentPresenter(eventBus,
        mindmapModel, new mindmaps.NewDocumentView());
    presenter.go();
  }
function doNewDocument() {
    // close old document first
    var doc = mindmapModel.getDocument();
    doCloseDocument();

    var presenter = new mindmaps.NewDocumentPresenter(eventBus,
        mindmapModel, new mindmaps.NewDocumentView());
    presenter.go();
  }
function doNewDocument ( ) { // close old document first var doc = mindmapModel . getDocument ( ) ; doCloseDocument ( ) ; var presenter = new mindmaps . NewDocumentPresenter ( eventBus , mindmapModel , new mindmaps . NewDocumentView ( ) ) ; presenter . go ( ) ; }
Handles the new document command.
Handles the new document command .