mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Code review fixes:
* Use .hasClass() instead of .is() where possible * More succinct math operators in DropdownEventHandler._tryToSelect() * Document language-change events * Improve some more JS code hints docs
This commit is contained in:
1 parent
6e6c6189bd
commit
23a3e91eb5
5 files changed
+20
-10
No files matched your search
@@ -1137,7 +1137,7 @@ define(function (require, exports, module) {
|
||||
* Called each time a new editor becomes active.
|
||||
*
|
||||
* @param {Session} session - the active hinting session
|
||||
* @param {Document} document - the document of the editor that has changed
|
||||
* @param {!Document} document - the document of the editor that has changed
|
||||
* @param {?Document} previousDocument - the document of the editor is changing from
|
||||
*/
|
||||
function handleEditorChange(session, document, previousDocument) {
|
||||
|
||||
@@ -563,7 +563,7 @@ define(function (require, exports, module) {
|
||||
* When the editor is changed, reset the hinting session and cached
|
||||
* information, and reject any pending deferred requests.
|
||||
*
|
||||
* @param {Editor} editor - editor context to be initialized.
|
||||
* @param {!Editor} editor - editor context to be initialized.
|
||||
* @param {?Editor} previousEditor - the previous editor.
|
||||
*/
|
||||
function initializeSession(editor, previousEditor) {
|
||||
@@ -575,10 +575,10 @@ define(function (require, exports, module) {
|
||||
}
|
||||
|
||||
/*
|
||||
* Install editor change listeners
|
||||
* Connects to the given editor, creating a new Session & adding listeners
|
||||
*
|
||||
* @param {Editor} editor - editor context on which to listen for
|
||||
* changes
|
||||
* @param {?Editor} editor - editor context on which to listen for
|
||||
* changes. If null, 'session' is cleared.
|
||||
* @param {?Editor} previousEditor - the previous editor
|
||||
*/
|
||||
function installEditorListeners(editor, previousEditor) {
|
||||
|
||||
Reference in new issue
Block a user