mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-22 11:02:58 +00:00
d42a0772bb
Avoids having to update the date in every file every year, which we stopped doing. Change-Id: I7bf7aa0937eef911e00772470091753a7b06fd3d
49 lines
937 B
JavaScript
49 lines
937 B
JavaScript
/*!
|
|
* VisualEditor Initialization save error handler class
|
|
*
|
|
* @copyright See AUTHORS.txt
|
|
*/
|
|
|
|
/**
|
|
* Save error handler.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
*
|
|
* @constructor
|
|
*/
|
|
ve.init.mw.SaveErrorHandler = function () {};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.initClass( ve.init.mw.SaveErrorHandler );
|
|
|
|
/* Static methods */
|
|
|
|
/**
|
|
* Test if this handler should handle a specific API response
|
|
*
|
|
* @static
|
|
* @inheritable
|
|
* @param {Object} data API response from action=visualeditoredit
|
|
* @return {boolean}
|
|
*/
|
|
ve.init.mw.SaveErrorHandler.static.matchFunction = null;
|
|
|
|
/**
|
|
* Process the save error
|
|
*
|
|
* @static
|
|
* @inheritable
|
|
* @param {Object} data API response from action=visualeditoredit
|
|
* @param {ve.init.mw.ArticleTarget} target
|
|
*/
|
|
ve.init.mw.SaveErrorHandler.static.process = null;
|
|
|
|
/* Save error registry */
|
|
|
|
/*
|
|
* Extensions can add SaveErrorHandler sub-classes to this registry.
|
|
*/
|
|
ve.init.mw.saveErrorHandlerFactory = new OO.Factory();
|