undo rename
This commit is contained in:
parent
73f68abfc1
commit
9179b04438
1 changed files with 7 additions and 7 deletions
|
|
@ -61,14 +61,14 @@ var Cursor = function(parentEl) {
|
|||
this.setBlinking = function(blinking) {
|
||||
if (blinking != this.isBlinking){
|
||||
this.isBlinking = blinking;
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
}
|
||||
};
|
||||
|
||||
this.setBlinkInterval = function(blinkInterval) {
|
||||
if (blinkInterval != this.blinkInterval){
|
||||
this.blinkInterval = blinkInterval;
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ var Cursor = function(parentEl) {
|
|||
dom.addCssClass(this.element, "ace_smooth-blinking");
|
||||
else
|
||||
dom.removeCssClass(this.element, "ace_smooth-blinking");
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -102,16 +102,16 @@ var Cursor = function(parentEl) {
|
|||
this.hideCursor = function() {
|
||||
this.isVisible = false;
|
||||
dom.addCssClass(this.element, "ace_hidden-cursors");
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
};
|
||||
|
||||
this.showCursor = function() {
|
||||
this.isVisible = true;
|
||||
dom.removeCssClass(this.element, "ace_hidden-cursors");
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
};
|
||||
|
||||
this.resetTimer = function() {
|
||||
this.restartTimer = function() {
|
||||
clearInterval(this.intervalId);
|
||||
clearTimeout(this.timeoutId);
|
||||
if (this.smoothBlinking)
|
||||
|
|
@ -199,7 +199,7 @@ var Cursor = function(parentEl) {
|
|||
|
||||
// cache for textarea and gutter highlight
|
||||
this.$pixelPos = pixelPos;
|
||||
this.resetTimer();
|
||||
this.restartTimer();
|
||||
};
|
||||
|
||||
this.$setOverwrite = function(overwrite) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue