guillaumepotier/Parsley.js — pull request #87 by tehtorq (2013-01-30 10:46:28+00:00)
Title: Use conventional form of iterating through arrays

We've run into an issue where adding member functions to the Array prototype causes unexpected behavior (and resulting javascript errors).

Basically in a number of places in parsley.js, iteration is done using the form 'for (var i in array)', where the form 'for (initialization; condition; update)' is preferred.

See http://javascript.crockford.com/code.html regarding "for Statement", and http://stackoverflow.com/a/243778.

Changes made were to replace the former form with the latter.