ClicFlic Logo

ClicFlic Logo
ClicFlic

Saturday, November 2, 2013

Array Iteration Bug Fix Posted

While working with one of our partners, we found that the HTML5 code used a poor practice for iterating over all the elements of an Array object in javascript using a for - in loop, such that, if another script extended the Array object, such as by attaching a contains or a custom sorting method, the iteration process would fail. 

All Array object iterations using this method have been replaced with a more bulletproof method.

Additionally, a full review of all conditional statements has been conducted in the HTML5 code to prevent unexpected results when using === or !== vs using == or !=  comparison operators. There are a few subtle conditions that have caused unexpected results.

We recommend that you re-deploy your IMOs to take advantage of these changes.



No comments:

Post a Comment