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

Commit

Permalink
Merge pull request #8990 from adobe/jeff/splitview-fixes
Browse files Browse the repository at this point in the history
Fix 2 issues in DocumentManager Deprecated APIs
  • Loading branch information
redmunds committed Sep 6, 2014
2 parents 7d9356e + c774ca9 commit ece9bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/document/DocumentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ define(function (require, exports, module) {
DocumentModule = require("document/Document"),
DeprecationWarning = require("utils/DeprecationWarning"),
MainViewManager = require("view/MainViewManager"),
MainViewFactory = require("view/MainViewFactory"),
ProjectManager = require("project/ProjectManager"),
EditorManager = require("editor/EditorManager"),
FileSyncManager = require("project/FileSyncManager"),
Expand Down Expand Up @@ -162,10 +163,8 @@ define(function (require, exports, module) {
DeprecationWarning.deprecationWarning("Use MainViewManager.getViews() instead of DocumentManager.getWorkingSet()", true);
return MainViewManager.getWorkingSet(MainViewManager.ALL_PANES)
.filter(function (file) {
// Document.file objects were added to Working Sets
// so filter the result set from the new API
// for those files who have document objects
return getOpenDocumentForPath(file.fullPath);
// Legacy didn't allow for files with custom viewers
return !MainViewFactory.findSuitableFactoryForPath(file.fullPath);
});
}

Expand Down Expand Up @@ -687,6 +686,7 @@ define(function (require, exports, module) {
exports.getCurrentDocument = getCurrentDocument;
exports.beginDocumentNavigation = beginDocumentNavigation;
exports.finalizeDocumentNavigation = finalizeDocumentNavigation;
exports.getNextPrevFile = getNextPrevFile;
exports.setCurrentDocument = setCurrentDocument;
exports.closeFullEditor = closeFullEditor;
exports.closeAll = closeAll;
Expand Down

0 comments on commit ece9bbf

Please sign in to comment.