diff --git a/src/document/DocumentCommandHandlers.js b/src/document/DocumentCommandHandlers.js index 27231fc0ba8..671a5e1605c 100644 --- a/src/document/DocumentCommandHandlers.js +++ b/src/document/DocumentCommandHandlers.js @@ -904,8 +904,7 @@ define(function (require, exports, module) { // Init DOM elements AppInit.htmlReady(function () { - var $titleContainerToolbar = $("#titlebar"); - _$titleContainerToolbar = $titleContainerToolbar; + _$titleContainerToolbar = $("#titlebar"); _$titleWrapper = $(".title-wrapper", _$titleContainerToolbar); _$title = $(".title", _$titleWrapper); _$dirtydot = $(".dirty-dot", _$titleWrapper); diff --git a/src/document/DocumentManager.js b/src/document/DocumentManager.js index a7735e25a3c..600f24fc5b1 100644 --- a/src/document/DocumentManager.js +++ b/src/document/DocumentManager.js @@ -1223,8 +1223,6 @@ define(function (require, exports, module) { * @param {string} path The path of the file/folder that has been deleted */ function notifyPathDeleted(path) { - var i, docPath; - /* FileSyncManager.syncOpenDocuments() does all the work of closing files in the working set and notifying the user of any unsaved changes. */ FileSyncManager.syncOpenDocuments(Strings.FILE_DELETED_TITLE);