Esanders has uploaded a new change for review.

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

Change subject: Remove MW-specific mobile hack from core
......................................................................

Remove MW-specific mobile hack from core

Moved to MW in Ica837abd.

Change-Id: I94491de87d9cc7d0ecbd971ae9efd4ef10850858
---
M src/ui/ve.ui.MobileContext.js
1 file changed, 0 insertions(+), 20 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/93/165993/1

diff --git a/src/ui/ve.ui.MobileContext.js b/src/ui/ve.ui.MobileContext.js
index 3582737..32b2f2c 100644
--- a/src/ui/ve.ui.MobileContext.js
+++ b/src/ui/ve.ui.MobileContext.js
@@ -72,23 +72,3 @@
 
        return deferred.promise();
 };
-
-/**
- * @inheritdoc
- */
-ve.ui.MobileContext.prototype.getAvailableTools = function () {
-       var tools = ve.ui.MobileContext.super.prototype.getAvailableTools.call( 
this );
-
-       // Filter out tools not supported in mobile mode
-       // FIXME: This is a temporary hack. Ideally, we don't want to load any 
code
-       // that is not supported on a given platform. However, present 
implementation
-       // of citation dialog forces us to load tools that we don't want on 
mobile.
-       this.availableTools = tools.filter( function ( tool ) {
-               return (
-                       tool.model instanceof ve.dm.LinkAnnotation ||
-                       ( tool.model instanceof ve.dm.MWReferenceNode && 
tool.tool !== ve.ui.MWReferenceDialogTool )
-               );
-       } );
-
-       return this.availableTools;
-};

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I94491de87d9cc7d0ecbd971ae9efd4ef10850858
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/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