mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-28 09:40:04 +00:00
Merge "Use ve.deactivationComplete hook instead of ve.deactivate"
This commit is contained in:
commit
2b3b57b21d
|
@ -56,7 +56,7 @@ $( function () {
|
||||||
$( '.ve-init-mw-desktopArticleTarget-originalContent' ).prepend( target.$element );
|
$( '.ve-init-mw-desktopArticleTarget-originalContent' ).prepend( target.$element );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
mw.hook( 've.deactivate' ).add( function () {
|
mw.hook( 've.deactivationComplete' ).add( function () {
|
||||||
if ( target ) {
|
if ( target ) {
|
||||||
target.destroy();
|
target.destroy();
|
||||||
target = null;
|
target = null;
|
||||||
|
|
Loading…
Reference in a new issue