mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Use ve.deactivationComplete hook instead of ve.deactivate
We want to deprecate the latter. Change-Id: Id1ae1049738220a86adb36cb3961592e3d8ca27c
This commit is contained in:
parent
64367bfebe
commit
e0cab02231
|
@ -56,7 +56,7 @@ $( function () {
|
|||
$( '.ve-init-mw-desktopArticleTarget-originalContent' ).prepend( target.$element );
|
||||
}
|
||||
} );
|
||||
mw.hook( 've.deactivate' ).add( function () {
|
||||
mw.hook( 've.deactivationComplete' ).add( function () {
|
||||
if ( target ) {
|
||||
target.destroy();
|
||||
target = null;
|
||||
|
|
Loading…
Reference in a new issue