mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
203a1cde34
The search index is really only used in a single place, in the buildSearchResults method at the very bottom of the class. I find it more obvious to understand what's going on when the places where the search index is populated and used are as close together as possible. This again really only moves existing code around without actually changing anything. We can also drop the extra "built" property and use a special null value instead. This is possible because we know the only consumer of the this.index property and can guarantee it can't get confused by the null. Bug: T356871 Change-Id: Iaddb3b16b3aa776f89fca2bf0350cce9b6bb1a23 |
||
---|---|---|
.. | ||
.eslintrc.json | ||
ve.dm.citeExample.js | ||
ve.dm.Converter.test.js | ||
ve.dm.InternalList.test.js | ||
ve.dm.MWReferenceModel.test.js | ||
ve.dm.MWReferenceNode.test.js | ||
ve.dm.MWReferencesListNode.test.js | ||
ve.dm.Transaction.test.js | ||
ve.ui.DiffElement.test.js | ||
ve.ui.MWCitationDialogTool.test.js | ||
ve.ui.MWReferenceContextItem.test.js | ||
ve.ui.MWReferenceDialog.test.js | ||
ve.ui.MWReferenceGroupInputWidget.test.js | ||
ve.ui.MWReferenceResultWidget.test.js | ||
ve.ui.MWReferenceSearchWidget.test.js | ||
ve.ui.MWReferencesListDialog.test.js | ||
ve.ui.MWUseExistingReferenceCommand.test.js | ||
ve.ui.MWWikitextStringTransferHandler.test.js |