'clearMessage' is a method of MWSaveDialog, not ViewPageTarget

Fixes a small casualty left behind by 972c9a46b7.

Bug: 55726
Change-Id: I8cf8418dede002068fb1090d940b09c3bb91c196
This commit is contained in:
Ori Livneh 2013-10-15 00:30:30 -07:00 committed by Krinkle
parent 395d5f563c
commit b001b2b976

View file

@ -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;
}