mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
0560084393
Clean up of logic implemented during the template-sprint: * Store spec inside the content model, directly associated with the content-part. This allowed fixing the bug where two spec-less template invocations overwrote each other's made-up template data due to it using "target.wt" as key. The opener now provides the fetcher with a "specId" which is set to "part/<id>" for wt-generated template targets. * Batching is now implemented inside the fetcher instead of outside. This allows calling "getTemplateSpecs" inside the loop with a dedicated callback for each spec to store it in the content.parts[i] object passed by reference. It also makes it easier to use by different code paths. You call it as much as you like and it will queue up naturally through javascript yielding and then make a batch request. This is based on the pattern I used in MediaWiki core for mw.loader#addEmbeddedCSS. Follows-up |
||
---|---|---|
.. | ||
actions | ||
dialogs | ||
elements | ||
inspectors | ||
layouts | ||
styles | ||
tools | ||
widgets | ||
ve.ui.Action.js | ||
ve.ui.ActionFactory.js | ||
ve.ui.CommandRegistry.js | ||
ve.ui.Context.js | ||
ve.ui.Dialog.js | ||
ve.ui.DialogFactory.js | ||
ve.ui.Frame.js | ||
ve.ui.Inspector.js | ||
ve.ui.InspectorFactory.js | ||
ve.ui.js | ||
ve.ui.Layout.js | ||
ve.ui.Surface.js | ||
ve.ui.Tool.js | ||
ve.ui.Toolbar.js | ||
ve.ui.ToolFactory.js | ||
ve.ui.Trigger.js | ||
ve.ui.TriggerRegistry.js | ||
ve.ui.ViewRegistry.js | ||
ve.ui.Widget.js | ||
ve.ui.Window.js | ||
ve.ui.WindowSet.js |