diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index 59bf6883ea..2b73a1fba3 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -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 ); diff --git a/modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js b/modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js index d3ea74f36a..70c22f535f 100644 --- a/modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js +++ b/modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js @@ -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();