jList 1.4.1: a bug fix for listFind

Today I checked version 1.4.1 of jList into GitHub. This release contains only one bug fix – to listFind.

The listFind function uses array.indexOf to search arrays, if it is available (it is in all modern browsers). Where it isn’t available (e.g. in Internet Explorer versions prior to 9) I fall back to using a less efficient for loop. Unfortunately there was a syntax error in the fallback version that has been there from release 1. Of course, this should have been detected in testing, especially now that am I am using a Jasmine-based test suite, but the fact that it wasn’t emphasises one of the limitations of automated web testing – if you don’t run your test suite in a very broad range of browsers you’re running the risk of certain parts of your code never being tested at all.

jList 1.4.1 can be downloaded for free from GitHub.

 

More:

 

Previously:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s