From 21708f1d4356cfcb4acecc0b99cca3804c171ba4 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 3 Dec 2010 12:46:29 +0000 Subject: [PATCH] Followup r76973: keep $target variable local --- .../mediawiki.action/mediawiki.action.view.rightClickEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js b/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js index 11254174fd..5a7c777f42 100644 --- a/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js +++ b/resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js @@ -14,7 +14,7 @@ $( function() { var href = $(this).find( '.editsection a' ).attr( 'href' ); // Check if target is the anchor link itself. If so, don't suppress the context menu; this // way the reader can still do things like copy URL, open in new tab etc. - $target = $( e.target ); + var $target = $( e.target ); if ( !$target.is( 'a' ) && !$target.parent().is( '.editsection' ) ){ window.location = href; e.preventDefault(); -- 2.20.1