Page 1 of 1

Exception if tag <a> not have href

Posted: Tue Oct 16, 2018 2:22 am
by nike80
If in tab control skip href in tag <a> ... </a> exception raised.
Because .trim() appyed to undefined.

Image
http://i77.fastpic.ru/big/2018/1016/31/ ... f4e031.jpg

Image
http://i77.fastpic.ru/big/2018/1016/76/ ... e7bc76.png

So, someting like this required:

Code: Select all

target = target ? target.trim() : '';

Re: Exception if tag <a> not have href

Posted: Tue Oct 16, 2018 10:33 am
by olton
update metro4 to latest version