mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
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:
parent
d147504f49
commit
297b4568d8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue