jenkins-bot has submitted this change and it was merged.

Change subject: Followup c41f96c: doc parameter in ve.dm.InternalList 
constructor is not optional, remove check
......................................................................


Followup c41f96c: doc parameter in ve.dm.InternalList constructor is not 
optional, remove check

Change-Id: I2d699483330d84647cb256272535dde6b8f2437c
---
M modules/ve/dm/ve.dm.InternalList.js
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ve/dm/ve.dm.InternalList.js 
b/modules/ve/dm/ve.dm.InternalList.js
index 88dd1f0..8bd1cc5 100644
--- a/modules/ve/dm/ve.dm.InternalList.js
+++ b/modules/ve/dm/ve.dm.InternalList.js
@@ -29,9 +29,7 @@
        this.nextUniqueNumber = 0;
 
        // Event handlers
-       if ( doc ) {
-               doc.connect( this, { 'transact': 'onTransact' } );
-       }
+       this.document.connect( this, { 'transact': 'onTransact' } );
 };
 
 /* Inheritance */

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2d699483330d84647cb256272535dde6b8f2437c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to