From 9179b0443829dae4007e6aca9328bed8415693b5 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 26 Oct 2012 19:46:37 +0400 Subject: [PATCH] undo rename --- lib/ace/layer/cursor.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ace/layer/cursor.js b/lib/ace/layer/cursor.js index d42b1d28..f4c1ae97 100644 --- a/lib/ace/layer/cursor.js +++ b/lib/ace/layer/cursor.js @@ -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) {