remove doc comments describing events that ace doesn't emit
This commit is contained in:
parent
89d1c65540
commit
330ca76bfe
5 changed files with 58 additions and 83 deletions
|
|
@ -392,7 +392,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onFocus()
|
||||
* Editor@focus()
|
||||
*
|
||||
* Emitted once the editor comes into focus.
|
||||
**/
|
||||
|
|
@ -406,7 +406,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onBlur()
|
||||
* Editor@blur()
|
||||
*
|
||||
* Emitted once the editor has been blurred.
|
||||
**/
|
||||
|
|
@ -424,7 +424,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onDocumentChange(e)
|
||||
* Editor@change(e)
|
||||
* - e (Object): Contains a single property, `data`, which has the delta of changes
|
||||
*
|
||||
* Emitted whenever the document is changed.
|
||||
|
|
@ -447,37 +447,22 @@ var Editor = function(renderer, session) {
|
|||
this.$cursorChange();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onTokenizerUpdate(e)
|
||||
* - e (Object): Contains a single property, `data`, which indicates the changed rows
|
||||
*
|
||||
* Emitted when the a tokenizer is updated.
|
||||
**/
|
||||
this.onTokenizerUpdate = function(e) {
|
||||
var rows = e.data;
|
||||
this.renderer.updateLines(rows.first, rows.last);
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onScrollTopChange()
|
||||
*
|
||||
* Emitted when the scroll top changes.
|
||||
**/
|
||||
|
||||
this.onScrollTopChange = function() {
|
||||
this.renderer.scrollToY(this.session.getScrollTop());
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onScrollLeftChange()
|
||||
*
|
||||
* Emitted when the scroll left changes.
|
||||
**/
|
||||
|
||||
this.onScrollLeftChange = function() {
|
||||
this.renderer.scrollToX(this.session.getScrollLeft());
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onCursorChange()
|
||||
* Editor@cursorChange()
|
||||
*
|
||||
* Emitted when the cursor changes.
|
||||
**/
|
||||
|
|
@ -523,7 +508,7 @@ var Editor = function(renderer, session) {
|
|||
|
||||
|
||||
/**
|
||||
* Editor@onSelectionChange(e)
|
||||
* Editor@selectionChange(e)
|
||||
* - e (Object): Contains a single property, `data`, which has the delta of changes
|
||||
*
|
||||
* Emitted when a selection has changed.
|
||||
|
|
@ -581,7 +566,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeFrontMarker()
|
||||
* Editor@changeFrontMarker()
|
||||
*
|
||||
* Emitted when a front marker changes.
|
||||
**/
|
||||
|
|
@ -590,7 +575,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeBackMarker()
|
||||
* Editor@changeBackMarker()
|
||||
*
|
||||
* Emitted when a back marker changes.
|
||||
**/
|
||||
|
|
@ -599,7 +584,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeBreakpoint()
|
||||
* Editor@changeBreakpoint()
|
||||
*
|
||||
* Emitted when a breakpoint changes.
|
||||
**/
|
||||
|
|
@ -608,7 +593,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeAnnotation()
|
||||
* Editor@changeAnnotation()
|
||||
*
|
||||
* Emitted when an annotation changes.
|
||||
**/
|
||||
|
|
@ -617,7 +602,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeMode()
|
||||
* Editor@changeMode()
|
||||
*
|
||||
* Emitted when the mode changes.
|
||||
**/
|
||||
|
|
@ -626,7 +611,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeWrapLimit()
|
||||
* Editor@changeWrapLimit()
|
||||
*
|
||||
* Emitted when the wrap limit changes.
|
||||
**/
|
||||
|
|
@ -635,7 +620,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeWrapMode()
|
||||
* Editor@changeWrapMode()
|
||||
*
|
||||
* Emitted when the wrap mode changes.
|
||||
**/
|
||||
|
|
@ -644,7 +629,7 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Editor@onChangeFold()
|
||||
* Editor@changeFold()
|
||||
*
|
||||
* Emitted when the code folds change.
|
||||
**/
|
||||
|
|
@ -799,22 +784,10 @@ var Editor = function(renderer, session) {
|
|||
mode.autoOutdent(lineState, session, cursor.row);
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onTextInput(text, pasted)
|
||||
* - text (String): The text entered
|
||||
* - pasted (Boolean): Identifies whether the text was pasted (`true`) or not
|
||||
*
|
||||
* Emitted when text is entered.
|
||||
**/
|
||||
this.onTextInput = function(text) {
|
||||
this.keyBinding.onTextInput(text);
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor@onCommandKey(e, hashId, keyCode)
|
||||
*
|
||||
* Emitted when the command-key is pressed.
|
||||
**/
|
||||
this.onCommandKey = function(e, hashId, keyCode) {
|
||||
this.keyBinding.onCommandKey(e, hashId, keyCode);
|
||||
};
|
||||
|
|
@ -1500,31 +1473,14 @@ var Editor = function(renderer, session) {
|
|||
};
|
||||
};
|
||||
|
||||
/** internal, hide
|
||||
* Editor@onCompositionStart(text)
|
||||
* - text (String): The text being written
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.onCompositionStart = function(text) {
|
||||
this.renderer.showComposition(this.getCursorPosition());
|
||||
};
|
||||
|
||||
/** internal, hide
|
||||
* Editor@onCompositionUpdate(text)
|
||||
* - text (String): The text being written
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.onCompositionUpdate = function(text) {
|
||||
this.renderer.setCompositionText(text);
|
||||
};
|
||||
|
||||
/** internal, hide
|
||||
* Editor@onCompositionEnd()
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.onCompositionEnd = function() {
|
||||
this.renderer.hideComposition();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue