Skip to content

Commit 6c57c6c

Browse files
Dispatching focus event and removed require
1 parent 82893e7 commit 6c57c6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/editor/Editor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
define(function (require, exports, module) {
6262
"use strict";
6363

64-
var EditorManager = require("editor/EditorManager"),
65-
CodeHintManager = require("editor/CodeHintManager"),
64+
var CodeHintManager = require("editor/CodeHintManager"),
6665
Commands = require("command/Commands"),
6766
CommandManager = require("command/CommandManager"),
6867
Menus = require("command/Menus"),
@@ -604,7 +603,7 @@ define(function (require, exports, module) {
604603
// Convert CodeMirror onFocus events to EditorManager activeEditorChanged
605604
this._codeMirror.setOption("onFocus", function () {
606605
self._focused = true;
607-
EditorManager._notifyActiveEditorChanged(self);
606+
$(self).triggerHandler("focus", [self]);
608607
});
609608

610609
this._codeMirror.setOption("onBlur", function () {

0 commit comments

Comments
 (0)