Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ajaxorg/ace
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpbruel2 committed Feb 15, 2011
2 parents 7ce9cee + ba244bc commit 695a242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/ace/editor.js
Expand Up @@ -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) {
Expand All @@ -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);
};
Expand Down
2 changes: 1 addition & 1 deletion lib/ace/worker/mirror.js
Expand Up @@ -14,7 +14,7 @@ var Mirror = exports.Mirror = function(sender) {
sender.on("change", function(e) {
doc.applyDeltas([e.data]);
deferredUpdate.schedule(_self.$timeout);
})
});
};

(function() {
Expand Down

0 comments on commit 695a242

Please sign in to comment.