mediawiki-extensions-Visual.../modules/ve-mw/preinit
Thiemo Kreuz fae6118071 Document and use mw.Api parameter defaults
Reasoning:
* format=json must be the default. Nothing else makes sense in
  the context of this code. This should not be a surprise.
* formatversion=2 is only a default when the custom
  getContentApi() is used, but not when mw.Api is used. One
  might argue that it's safer to always specify formatversion=2.
  However, this is not done in other places in this codebase.
  It should never be done or always.
* I find it confusing when the action=… is missing. Let's not
  rely on this default.

Change-Id: I6ca29f76bffc0849103c5bcff4aaf28fcaaa4c52
2021-07-12 09:13:59 +02:00
..
styles Remove obsolete vendor prefixed properties 2021-05-03 08:09:01 -07:00
.eslintrc.json Replace $.when with ve.promiseAll 2019-11-04 22:06:54 +08:00
ve.init.mw.ArticleTargetLoader.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.init.mw.ArticleTargetSaver.js Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
ve.init.mw.DesktopArticleTarget.init.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.init.mw.DiffLoader.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00
ve.init.mw.DiffPage.init.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00
ve.init.mw.ProgressBarWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.TempWikitextEditorWidget.js Use term "wikitext" when working with TempWikitextEditorWidget 2021-06-09 10:23:36 +02:00
ve.init.MWEditingTabDialog.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.init.MWEditModeTool.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchConfirmDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchPopupWidget.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00
ve.init.MWWelcomeDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.utils.parsoid.js Move vars inline in preinit code 2021-05-05 18:06:37 +01:00