Move status bar code out of EditorManager into a new module. Keeps

EditorManager tightly focused on maintaining the set of Editors and gives
the status bar code room to grow for future UI additions.

This removes EditorManager._init() and the manual calls to it from unit
tests, which seem unnecessary. EditorStatusBar._init() is still called on
htmlReady - just not manually called by any unit tests.

Also, change the status bar code to use active editor more consistently
(used to use focused editor sometimes).
This commit is contained in:
Peter Flynn committed 2013-03-06 20:09:50 -08:00
1 parent 799b3efbbd
commit 821b7b2e19
6 files changed
+191 -148

No files matched your search

@@ -52,7 +52,6 @@ define(function (require, exports, module) {
// Initialize EditorManager
var $editorHolder = $("<div id='mock-editor-holder'/>");
EditorManager.setEditorHolder($editorHolder);
EditorManager._init();
$("body").append($editorHolder);
// create Editor instance