Bartosz Dziewoński has uploaded a new change for review.

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

Change subject: Add missing #onUpdateState method to OO.ui.Tool subclasses
......................................................................

Add missing #onUpdateState method to OO.ui.Tool subclasses

Bug: T119109
Change-Id: I63c503a165713cf472abaac127803d9192a8878d
---
M resources/mobile.editor.common/EditorOverlayBase.js
M resources/mobile.editor.overlay.withtoolbar/EditorOverlayWithToolbar.js
2 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/88/254388/1

diff --git a/resources/mobile.editor.common/EditorOverlayBase.js 
b/resources/mobile.editor.common/EditorOverlayBase.js
index 4effbc8..3d329b7 100644
--- a/resources/mobile.editor.common/EditorOverlayBase.js
+++ b/resources/mobile.editor.common/EditorOverlayBase.js
@@ -30,6 +30,9 @@
        EditVeTool.prototype.onSelect = function () {
                // will be overridden later
        };
+       EditVeTool.prototype.onUpdateState = function () {
+               // do nothing
+       };
 
        /**
         * Base class for EditorOverlay
diff --git 
a/resources/mobile.editor.overlay.withtoolbar/EditorOverlayWithToolbar.js 
b/resources/mobile.editor.overlay.withtoolbar/EditorOverlayWithToolbar.js
index e069acf..78078c9 100644
--- a/resources/mobile.editor.overlay.withtoolbar/EditorOverlayWithToolbar.js
+++ b/resources/mobile.editor.overlay.withtoolbar/EditorOverlayWithToolbar.js
@@ -67,6 +67,9 @@
                                        // we don't want to leave the button 
selected
                                        this.setActive( false );
                                };
+                               toolButton.prototype.onUpdateState = function 
() {
+                                       // do nothing
+                               };
 
                                // set properties
                                toolButton.static.name = name;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I63c503a165713cf472abaac127803d9192a8878d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

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

Reply via email to