Merge "Move ve.init.mw.saveErrorHandlerFactory and fix documentation"

This commit is contained in:
jenkins-bot 2018-12-04 23:34:05 +00:00 committed by Gerrit Code Review
commit f583a0fb6a
2 changed files with 7 additions and 10 deletions

View file

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

View file

@ -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();