fix broken reference to "self"

This commit is contained in:
Fabian Jakobs 2011-02-04 13:24:04 +01:00
commit 6516e3931a

View file

@ -120,7 +120,7 @@ var MouseHandler = function(editor) {
if (self.$clickSelection) {
if (self.$clickSelection.contains(cursor.row, cursor.column)) {
self.selection.setSelectionRange(self.$clickSelection);
editor.selection.setSelectionRange(self.$clickSelection);
} else {
if (self.$clickSelection.compare(cursor.row, cursor.column) == -1) {
var anchor = self.$clickSelection.end;