Merge "Use ve.deactivationComplete hook instead of ve.deactivate"

This commit is contained in:
jenkins-bot 2018-11-30 20:27:28 +00:00 committed by Gerrit Code Review
commit 2b3b57b21d

View file

@ -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;