From 6f367ea0ec34b219b6b5ceca9a8fe737d6b9078c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 31 Jan 2017 14:20:56 +0100 Subject: [PATCH] ve.init.mw.ArticleTarget: Don't try to clear non-existent message This is just dead code. We never call `.showMessage( 'captcha', ... )` (the CAPTCHA is shown in the 'api-save-error' message). Change-Id: I48f51e89d5b366384d184e2ed505be9e7b8f3401 --- modules/ve-mw/init/ve.init.mw.ArticleTarget.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index 9d0808cd6d..b6138553b7 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -1512,7 +1512,6 @@ ve.init.mw.ArticleTarget.prototype.onSaveDialogSave = function ( saveDeferred ) // Reset any old captcha data if ( this.captcha ) { - this.saveDialog.clearMessage( 'captcha' ); delete this.captcha; }