mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 18:36:20 +00:00
84d548e7b1
A @method annotation is only necessary when the docblock is not directly followed by a function declaration (in which case JSDuck assumes it documents a property), e.g. when defining an abstract function or referencing a function from another library. I verified that JSDuck generates exactly the same output before and after this change (docs/data-<hash>.js files are identical). Change-Id: I7edf51a8560ab9978b42800ab1026f0b5555c3bf
49 lines
998 B
JavaScript
49 lines
998 B
JavaScript
/*!
|
|
* VisualEditor Initialization save error handler class
|
|
*
|
|
* @copyright 2011-2019 VisualEditor Team and others; see http://ve.mit-license.org
|
|
*/
|
|
|
|
/**
|
|
* 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 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();
|