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