Fix "self" reference (for IE)

This commit is contained in:
danyaPostfactum 2012-05-24 16:54:08 +12:00
commit ca5023fb86

View file

@ -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);