caolan/forms — pull request #16 by fzembow (2012-01-03 17:47:09+00:00)
Title: Fixing sharing of form state

Hello caolan!

Here is a 3-line fix to close issue 13, wherein a bound form would also bind data to the form prototype: (https://github.com/caolan/forms/issues/13). This was caused by a circular reference between the `fields` property of the prototype and the bound form.

With this change, only the bound form will have `value` and `data` attributes changed when bound, as expected.

Happy new year,

Fil