From f9d3155f08362fffc28e0a6c48ed07a7cb6775f1 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 11 Feb 2011 08:10:15 +0100 Subject: [PATCH] create selection after the document --- lib/ace/edit_session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index d06147ae..422722ba 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -49,7 +49,6 @@ var NO_CHANGE_DELTAS = {}; var EditSession = function(text, mode) { this.$modified = true; - this.selection = new Selection(this); this.$breakpoints = []; this.$wrapData = []; this.listeners = []; @@ -60,6 +59,7 @@ var EditSession = function(text, mode) { this.setDocument(new Document(text)); } + this.selection = new Selection(this); if (mode) this.setMode(mode); };