From 3bf31e440db19086b54f5e46b57f06990140ee35 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Wed, 27 Feb 2013 18:22:21 -0700 Subject: [PATCH] Remove code for setting the active editor from root view Supplanted by "active pane" --- src/app/editor.coffee | 1 - src/app/root-view.coffee | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 1b4e8fe28..2cbe1bf00 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -346,7 +346,6 @@ class Editor extends View false @hiddenInput.on 'focus', => - rootView?.editorFocused(this) @isFocused = true @addClass 'is-focused' diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 094e9bf0b..1e4d349db 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -105,26 +105,6 @@ class RootView extends View activePane.focus() if changeFocus editSession - editorFocused: (editor) -> - @makeEditorActive(editor) if @panes.containsElement(editor) - - makeEditorActive: (editor, focus) -> - if focus - editor.focus() - return - - previousActiveEditor = @panes.find('.editor.active').view() - previousActiveEditor?.removeClass('active').off('.root-view') - editor.addClass('active') - - if not editor.mini - editor.on 'editor:path-changed.root-view', => - @trigger 'root-view:active-path-changed', editor.getPath() - - if not previousActiveEditor or editor.getPath() != previousActiveEditor.getPath() - @trigger 'root-view:active-path-changed', editor.getPath() - - updateTitle: -> if projectPath = project.getPath() if item = @getActivePaneItem()