🐎 Use DOM APIs to find editor views

This commit is contained in:
Kevin Sawicki
2014-09-08 17:10:30 -07:00
parent bb5a440651
commit 408cac4632

View File

@@ -240,7 +240,8 @@ class WorkspaceView extends View
#
# Returns an {Array} of {EditorView}s.
getEditorViews: ->
@panes.find('.pane > .item-views > .editor').map(-> $(this).view()).toArray()
for editorElement in @panes.element.querySelectorAll('.pane > .item-views > .editor')
$(editorElement).view()
# Public: Prepend an element or view to the panels at the top of the
# workspace.