Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Use command instead of private method.
Browse files Browse the repository at this point in the history
  • Loading branch information
busykai committed Feb 5, 2015
1 parent 587bb6c commit 86f94ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LiveDevelopment/LiveDevMultiBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ define(function (require, exports, module) {
var STATUS_RELOADING = exports.STATUS_RELOADING = 5;
var STATUS_RESTARTING = exports.STATUS_RESTARTING = 6;

var Dialogs = require("widgets/Dialogs"),
var CommandManager = require("command/CommandManager"),
Commands = require("command/Commands"),
Dialogs = require("widgets/Dialogs"),
DefaultDialogs = require("widgets/DefaultDialogs"),
DocumentManager = require("document/DocumentManager"),
EditorManager = require("editor/EditorManager"),
Expand Down Expand Up @@ -702,7 +704,7 @@ define(function (require, exports, module) {
MainViewManager.addToWorkingSet(MainViewManager.ACTIVE_PANE, doc.file);

if (!otherDocumentsInWorkingFiles) {
MainViewManager._edit(MainViewManager.ACTIVE_PANE, doc);
CommandManager.execute(Commands.CMD_OPEN, { fullPath: doc.file.fullPath });
}
}

Expand Down

0 comments on commit 86f94ef

Please sign in to comment.