Fix "self" reference (for IE)
This commit is contained in:
parent
871b32d098
commit
ca5023fb86
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue