guillaumepotier/Parsley.js — pull request #389 by vsn4ik (2013-10-22 23:40:08+00:00)
Title: Added "for" attribute for errorElem if it is the label.

I think that a good way to use the "for" attribute on labels.
I used ( this.$element.attr( 'id' ) ) instead of ( typeof this.$element.attr( 'id' ) !== 'undefined' ) because second returned true if id="" (empty). It is not correctly.