Page 1 of 1

js error in IE11

Posted: 24 Jul 2017, 13:16
by pixls
Hi

I just found out the aimeos.js in aimeos/Resources/Public/Themes is causing a js error in IE11. Because of this the images in the list view and the filter dont work anymore.

The error seems to be caused by the following for loop:

Code: Select all

for(entry of basket.included) { }
You can see the error here in the aimeos demo shop:
http://typo3.demo.aimeos.org/demo/

TYPO3 8.7.3, PHP 7, aimeos 17.7.0

Re: js error in IE11

Posted: 24 Jul 2017, 16:48
by aimeos
The "for of" loops are part of the ES6 standard and seem to be only supported since IE12 (Edge). The alternative would be a "for(i=0; i<basket.included.length;i++)" loop. Are you able to provide a tested patch for this? Thank you :-)

Re: js error in IE11

Posted: 25 Jul 2017, 06:24
by pixls
Thank you very much, this fixed the problem. Just tested in IE11.