mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 10:26:37 +00:00
53e4c370ea
Instead, listen to 'select', or to 'transact' on the dm.Document. This commit only fixes uses outside of the dm/ce.Surface ecosystem. ce.Surface still listens to 'change'. ve.init.mw.ViewPageTarget.js: * Rename onSurfaceModelTransact to clearSaveDialogDiff and bind it to the document's transact event instead * Rename onSurfaceModelChange to checkForWikitextWarning and bind it to the surface's transact event. This is needed because the function inspects the surface's selection, which isn't yet in a consistent state when the document's transact event fires ve.ui.MWReferenceDialog.js: * Rename onSurfaceChange to onDocumentTransact and rebind accordingly ve.ce.ProtectedNode.js: * Get rid of onSurfaceModelChange * Instead, bind positionPhantoms to the document's transact event directly, and only bind it while phantoms are visible ve.ui.Context.js: * Rename onChange to onModelSelect and rebind accordingly * Rename afterChange to afterModelSelect * Drop check for undefined selection, no longer needed now that we're listening to a finer-grained event ve.ce.Surface.test.js: * Listen to 'select' instead of 'change' Change-Id: Ifeb1a1fc5427696f2aae5441d4b54dde366793e0 |
||
---|---|---|
.. | ||
ve.ui.MWBetaWelcomeDialog.js | ||
ve.ui.MWMediaEditDialog.js | ||
ve.ui.MWMediaInsertDialog.js | ||
ve.ui.MWMetaDialog.js | ||
ve.ui.MWReferenceDialog.js | ||
ve.ui.MWReferenceListDialog.js | ||
ve.ui.MWSaveDialog.js | ||
ve.ui.MWTransclusionDialog.js |