From e0cab02231fe7bf4c3fded1a871664478df7842f Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 29 Nov 2018 13:59:37 +0000 Subject: [PATCH] Use ve.deactivationComplete hook instead of ve.deactivate We want to deprecate the latter. Change-Id: Id1ae1049738220a86adb36cb3961592e3d8ca27c --- modules/ext.templateDataGenerator.editTemplatePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ext.templateDataGenerator.editTemplatePage.js b/modules/ext.templateDataGenerator.editTemplatePage.js index 695df039..244e896d 100644 --- a/modules/ext.templateDataGenerator.editTemplatePage.js +++ b/modules/ext.templateDataGenerator.editTemplatePage.js @@ -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;