unreachable code after return statement – common.js

Bit of code that nobody every bothered to fix before as the error only ever appears in console.

Open: /javascript/common.js


	  tarea.innerHTML = str; return tarea.value;

Replace with:

	  tarea.innerHTML = str;
	  return tarea.value;

2 Replies to “unreachable code after return statement – common.js”

  1. Hi, thanks for sharing. How do I reproduce this error? Which part of the website is using this “HtmlEntityDecode” function?

  2. I found only “paypalpaymentsprouk.learnmore.tpl” is calling “ShowPopupHelp”. So if we are not using paypalpaymentsprouk module, then the whole HtmlEntityDecode function is actually useless.

Leave a Reply

Your email address will not be published. Required fields are marked *