mediawiki-extensions-Visual.../modules/ve-mw/init
Roan Kattouw dad06ef495 Followup 1c04d32d: release saveDialog reference even if closed
It's good that we're not trying to close the save dialog
if it's not open, but we still need to release our reference
to it in that case, otherwise trying to open the save dialog
in a new incarnation of the editor will fail.

If you opened VE, opened the save dialog, closed it,
went back to read mode, opened VE again, and tried to open the
save dialog again, it would fail because it tried to open
the cached reference to the previous editor's save dialog.

Bonus: prevent JS errors in this case by only attaching an
onClose handler if the dialog actually opened successfully.
If opening the dialog failed, the callback parameter isn't
a promise but an OO.ui.Error, and calling .always() causes
a JS error.

Change-Id: I62d6d3e7cd3df2c29a0c99e2e23bf1aac5187a12
2014-12-08 14:49:39 -08:00
..
styles Fix MW skin hacks 2014-11-22 17:52:46 +00:00
targets Followup 1c04d32d: release saveDialog reference even if closed 2014-12-08 14:49:39 -08:00
ve.init.mw.js
ve.init.mw.LinkCache.js Make LinkCache fail more gracefully when given undefined 2014-12-02 14:02:45 -08:00
ve.init.mw.Platform.js Use hasOwnProperty instead of 'key in obj' 2014-11-05 20:54:50 +00:00
ve.init.mw.Target.js Update VE core submodule to master (32397d8) 2014-12-06 12:28:07 -08:00
ve.init.mw.TargetEvents.js Track new pagedeleted save error in TargetEvents 2014-12-01 17:58:31 -08:00
ve.init.mw.trackSubscriber.js Revert "ve.init.mw.trackSubscriber: Populate platform field with hack" 2014-11-26 01:55:30 +00:00