Exception if tag <a> not have href

General issues related to the use of Metro 4
Post Reply
nike80
Posts: 6
Joined: Fri Aug 10, 2018 1:54 am
Status: Offline

Exception if tag <a> not have href

Post by nike80 » Tue Oct 16, 2018 2:22 am

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() : '';

User avatar
olton
Site Admin
Posts: 121
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Tue Oct 16, 2018 10:33 am

update metro4 to latest version

Post Reply