Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/203475

Change subject: Move setDocument call from ve.dm.Document up to ve.Document
......................................................................

Move setDocument call from ve.dm.Document up to ve.Document

Because CE nodes never had their document set.

Change-Id: I0ef9aa91bc3b01c67fd36bdd4cb6d51cb7837a93
---
M src/dm/ve.dm.Document.js
M src/ve.Document.js
2 files changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/75/203475/1

diff --git a/src/dm/ve.dm.Document.js b/src/dm/ve.dm.Document.js
index fd2e23d..fa2b70e 100644
--- a/src/dm/ve.dm.Document.js
+++ b/src/dm/ve.dm.Document.js
@@ -40,7 +40,6 @@
        this.dir = dir || 'ltr';
 
        this.documentNode.setRoot( root );
-       this.documentNode.setDocument( doc );
        this.internalList = internalList ? internalList.clone( this ) : new 
ve.dm.InternalList( this );
        this.innerWhitespace = innerWhitespace ? ve.copy( innerWhitespace ) : 
new Array( 2 );
 
diff --git a/src/ve.Document.js b/src/ve.Document.js
index 7743b00..b98bb93 100644
--- a/src/ve.Document.js
+++ b/src/ve.Document.js
@@ -19,6 +19,7 @@
 
        // Properties
        this.documentNode = documentNode;
+       this.documentNode.setDocument( this );
 };
 
 /* Inheritance */

-- 
To view, visit https://gerrit.wikimedia.org/r/203475
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ef9aa91bc3b01c67fd36bdd4cb6d51cb7837a93
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to