From 297b4568d804b6d363e119eb8bfce165d4424061 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Thu, 16 Aug 2012 13:16:48 -0700 Subject: [PATCH] Changed initial surface range to (0, 0) This makes a lot more sense when you start making a surface fragment from a new surface, because a null range would seem to have unpredictable behavior. Change-Id: I85210878deca3067960fa4a14e2a760e55f67e4e --- modules/ve/dm/ve.dm.Surface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/dm/ve.dm.Surface.js b/modules/ve/dm/ve.dm.Surface.js index ca557d6cb4..b11207bf2e 100644 --- a/modules/ve/dm/ve.dm.Surface.js +++ b/modules/ve/dm/ve.dm.Surface.js @@ -18,7 +18,7 @@ ve.dm.Surface = function ( doc ) { ve.EventEmitter.call( this ); // Properties this.documentModel = doc; - this.selection = null; + this.selection = new ve.Range( 0, 0 ); this.smallStack = []; this.bigStack = []; this.undoIndex = 0;