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
This commit is contained in:
Trevor Parscal 2012-08-16 13:16:48 -07:00
parent d147504f49
commit 297b4568d8

View file

@ -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;