From b001b2b97603d6ece0f3b029038928442cf13541 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Tue, 15 Oct 2013 00:30:30 -0700 Subject: [PATCH] 'clearMessage' is a method of MWSaveDialog, not ViewPageTarget Fixes a small casualty left behind by 972c9a46b7. Bug: 55726 Change-Id: I8cf8418dede002068fb1090d940b09c3bb91c196 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 13c1602109..bc207ec4bf 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -799,7 +799,7 @@ ve.init.mw.ViewPageTarget.prototype.saveDocument = function () { // reset save start and any old captcha data this.saveStart = ve.now(); if ( this.captcha ) { - this.clearMessage( 'captcha' ); + this.saveDialog.clearMessage( 'captcha' ); delete this.captcha; }