Merge activeFileTab into sole caller

pull/1/head
Alex Beregszaszi 8 years ago
parent b4446dcd4a
commit 3ae6b43704
  1. 8
      src/app.js

@ -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()
}

Loading…
Cancel
Save