mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "Move ve.init.mw.saveErrorHandlerFactory and fix documentation"
This commit is contained in:
commit
f583a0fb6a
|
@ -2560,15 +2560,5 @@ ve.init.mw.ArticleTarget.prototype.renderCategories = function ( categoryItems )
|
|||
} );
|
||||
};
|
||||
|
||||
/* Save error registry */
|
||||
|
||||
/*
|
||||
* Extensions can add methods to this registry.
|
||||
*
|
||||
* The method takes the editApi result object, and the target instance as arguments
|
||||
* and should return a boolean indicating if the error was handled.
|
||||
*/
|
||||
ve.init.mw.saveErrorHandlerFactory = new OO.Factory();
|
||||
|
||||
// Used in tryTeardown
|
||||
ve.ui.windowFactory.register( mw.widgets.AbandonEditDialog );
|
||||
|
|
|
@ -41,3 +41,10 @@ ve.init.mw.SaveErrorHandler.static.matchFunction = null;
|
|||
* @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();
|
||||
|
|
Loading…
Reference in a new issue