mediawiki-extensions-Visual.../modules/ve-mw/init
Timo Tijhof 7f01c9fadc mw.ViewPageTarget: Fix incomplete teardown sequence in #deactivate
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
2013-10-06 21:50:06 +02:00
..
styles Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00
targets mw.ViewPageTarget: Fix incomplete teardown sequence in #deactivate 2013-10-06 21:50:06 +02:00
ve.init.mw.js
ve.init.mw.Platform.js data: Rename MessagesModule to DataModule 2013-08-29 18:07:35 -07:00
ve.init.mw.Target.js Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00