mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Fix editor change when the last editor is closed.
This commit is contained in:
1 parent
5701d5c927
commit
6f4db4bf65
1 file changed
+1
-1
@@ -626,7 +626,7 @@ define(function (require, exports, module) {
|
||||
$(previous.document)
|
||||
.off(HintUtils.eventName("languageChanged"));
|
||||
}
|
||||
if (current.document !== DocumentManager.getCurrentDocument()) {
|
||||
if (current && current.document !== DocumentManager.getCurrentDocument()) {
|
||||
$(current.document)
|
||||
.on(HintUtils.eventName("languageChanged"), function () {
|
||||
uninstallEditorListeners(current);
|
||||
|
||||
Reference in new issue
Block a user