Skip to content

Commit

Permalink
Mimic close project behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
njx committed Jun 21, 2012
1 parent e53d738 commit 1ec344e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ define(function (require, exports, module) {
if (root !== currentProject) {
var $link = renderPath(root)
.click(function () {
// TODO: this is to mimic the behavior of openProject(). Should this be
// in loadProject()?
// TODO: this is to mimic the behavior of openProject(). Should really
// be a closeProject() method in ProjectManager.
$(ProjectManager).triggerHandler("beforeProjectClose", root);
DocumentManager.closeAll();
ProjectManager.loadProject(root);
closeDropdown();
Expand Down

0 comments on commit 1ec344e

Please sign in to comment.