From ca5023fb8657dea044add57b3f645cfc8525959f Mon Sep 17 00:00:00 2001 From: danyaPostfactum Date: Thu, 24 May 2012 16:54:08 +1200 Subject: [PATCH] Fix "self" reference (for IE) --- lib/ace/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ace/editor.js b/lib/ace/editor.js index ac7c31ac..834e603a 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -509,8 +509,9 @@ var Editor = function(renderer, session) { this.$updateHighlightActiveLine(); } + var self = this; if (this.$highlightSelectedWord && !this.$wordHighlightTimer) - this.$wordHighlightTimer = setTimeout(function(self) { + this.$wordHighlightTimer = setTimeout(function() { self.session.$mode.highlightSelection(self); self.$wordHighlightTimer = null; }, 30, this);