Esanders has uploaded a new change for review.

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

Change subject: Only unregister WT string handler in WT handler factory
......................................................................

Only unregister WT string handler in WT handler factory

Bug: T144653
Change-Id: I91528b56ac3905a05e8da51455055537958e026e
---
M modules/ve-mw/ce/ve.ce.MWWikitextSurface.js
M modules/ve-mw/ui/ve.ui.MWWikitextDataTransferHandlerFactory.js
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/96/312096/1

diff --git a/modules/ve-mw/ce/ve.ce.MWWikitextSurface.js 
b/modules/ve-mw/ce/ve.ce.MWWikitextSurface.js
index d0f65f4..d6e612b 100644
--- a/modules/ve-mw/ce/ve.ce.MWWikitextSurface.js
+++ b/modules/ve-mw/ce/ve.ce.MWWikitextSurface.js
@@ -67,5 +67,3 @@
                } );
        }
 };
-
-ve.ui.dataTransferHandlerFactory.unregister( 
ve.ui.MWWikitextStringTransferHandler );
diff --git a/modules/ve-mw/ui/ve.ui.MWWikitextDataTransferHandlerFactory.js 
b/modules/ve-mw/ui/ve.ui.MWWikitextDataTransferHandlerFactory.js
index 7243527..0a2609a 100644
--- a/modules/ve-mw/ui/ve.ui.MWWikitextDataTransferHandlerFactory.js
+++ b/modules/ve-mw/ui/ve.ui.MWWikitextDataTransferHandlerFactory.js
@@ -65,3 +65,5 @@
 /* Initialization */
 
 ve.ui.wikitextDataTransferHandlerFactory = new 
ve.ui.MWWikitextDataTransferHandlerFactory();
+
+ve.ui.wikitextDataTransferHandlerFactory.unregister( 
ve.ui.MWWikitextStringTransferHandler );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91528b56ac3905a05e8da51455055537958e026e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <esand...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to