Commit 3ae6b437 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Merge activeFileTab into sole caller

parent b4446dcd
......@@ -280,11 +280,6 @@ var run = function () {
return false
}
function activeFileTab () {
var name = utils.fileNameFromKey(editor.getCacheFile())
return $('#files .file').filter(function () { return $(this).find('.name').text() === name })
}
function updateFiles () {
var $filesEl = $('#files')
var files = editor.getFiles()
......@@ -298,7 +293,8 @@ var run = function () {
}
if (editor.cacheFileIsPresent()) {
var active = activeFileTab()
var currentFileName = utils.fileNameFromKey(editor.getCacheFile())
var active = $('#files .file').filter(function () { return $(this).find('.name').text() === currentFileName })
active.addClass('active')
editor.resetSession()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment