mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
7f01c9fadc
When deactivating before the surface became active (e.g. this.active is still false, as case is the case when Parsoid isn't running), the teardown sequence was incomplete. Most notable, the page title (h1.firstHeading) was still dimmed after cancelling the alert for Parsoid error, eventhough everything else was shown and restored. * Moved call to #showTableOfContents in #deactivate up for consistency with #activate. * Added call to #restorePageTitle in #deactivate so that the title is restored even if the surface didn't activate yet. * Removed calls to various methods in #tearDownSurface that were already called by #deactivate. Now activate/deactivate and setUpSurface/tearDownSurface are in balance. Change-Id: Ibb2fbf0e5ab9b6a028d4e139c13aa7ff8c82be82 |
||
---|---|---|
.. | ||
styles | ||
targets | ||
ve.init.mw.js | ||
ve.init.mw.Platform.js | ||
ve.init.mw.Target.js |