From 6516e3931a3e06138addccf75925bc85dd3c8eb3 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 4 Feb 2011 13:24:04 +0100 Subject: [PATCH] fix broken reference to "self" --- lib/ace/mouse_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mouse_handler.js b/lib/ace/mouse_handler.js index 4d4cc05a..5e836383 100644 --- a/lib/ace/mouse_handler.js +++ b/lib/ace/mouse_handler.js @@ -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;