mediawiki-extensions-Visual.../modules/ve-mw
Roan Kattouw e644d33a8d Follow-up 5c38995bd9: don't destroy toolbar twice
The toolbar.destroy() call that was added in 5c38995bd9 was
needed to destroy the dummy toolbar when tearing down VE
before a surface had been intialized. But when tearing down
VE after the surface had been initialized (e.g. exiting using
the Read tab), we would do:

* setTimeout in tearDownToolbar()
** Set toolbar height to 0 and wait for transitionend
*** toolbar.destroy() once transition complete
* toolbar.destroy() in cancel()

This meant that we'd listen for a transitionend event
on an unattached element (because once the setTimeout runs,
the toolbar has already been destroyed by the second call),
which of course never fires, so we'd never resolve the
tearDownToolbar deferred and never finish tearing down VE.

Bug: T98388
Change-Id: I504f0cb0bf13643773fc98cb18b7b380cccb2f88
2015-05-06 16:18:45 -07:00
..
ce ve.ce.MWEntityNode: Show whitespace characters, like in ve.ce.TextNode 2015-04-21 16:25:08 +02:00
dm jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00
i18n Localisation updates from https://translatewiki.net. 2015-05-06 22:03:28 +02:00
init Follow-up 5c38995bd9: don't destroy toolbar twice 2015-05-06 16:18:45 -07:00
tests Update VE core submodule to master (2714bfc) 2015-04-16 14:02:59 -07:00
ui jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00