diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 3d43f07d..957f8448 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -219,9 +219,9 @@ var Editor =function(renderer, session) { } this.$highlightBrackets = function() { - if (this.$bracketHighlight) { - this.session.removeMarker(this.$bracketHighlight); - this.$bracketHighlight = null; + if (this.session.$bracketHighlight) { + this.session.removeMarker(this.session.$bracketHighlight); + this.session.$bracketHighlight = null; } if (this.$highlightPending) { @@ -237,7 +237,7 @@ var Editor =function(renderer, session) { var pos = self.session.findMatchingBracket(self.getCursorPosition()); if (pos) { var range = new Range(pos.row, pos.column, pos.row, pos.column+1); - self.$bracketHighlight = self.session.addMarker(range, "ace_bracket"); + self.session.$bracketHighlight = self.session.addMarker(range, "ace_bracket"); } }, 10); };