From f687ba7ce0708c7f16aa161daf6c0f9d93f27931 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 23 Feb 2015 08:51:20 +0000 Subject: [PATCH] mw.ViewPageTarget.init: Add missing 'return target' Follows-up I002322beaae. I had this in the local patch but got lost in rebasing. The missing return statement caused an uncaught error when clicking section edit links as it was not forwarding the return value. Change-Id: I66b6a789f7182a4446122e94f19cfdb324f8d675 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js index 736750072e..8f00fa08dc 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.init.js @@ -403,6 +403,7 @@ targetPromise = getTarget().then( function ( target ) { target.saveEditSection( $( e.target ).closest( 'h1, h2, h3, h4, h5, h6' ).get( 0 ) ); + return target; } ); activateTarget( targetPromise ); }