Address review comments.

This commit is contained in:
Arzhan Kinzhalin committed 2014-05-01 12:07:49 -03:00
1 parent 8ebe1c2a19
commit 33a9a4757c
4 files changed
+36 -40

No files matched your search

@@ -788,11 +788,7 @@ define(function (require, exports, module) {
$(DocumentManager)
.on("currentDocumentLanguageChanged", function (e) {
var activeEditor = EditorManager.getActiveEditor();
// if we're not in an inline editor, trigger reinstalling of the editor listeners
// on the same editor, otherwise do nothing
if (DocumentManager.getCurrentDocument() === activeEditor.document) {
handleActiveEditorChange(e, activeEditor, activeEditor);
}
handleActiveEditorChange(e, activeEditor, activeEditor);
});
$(ProjectManager).on("beforeProjectClose", function () {