bcardarella/client_side_validations — pull request #301 by Pranas (2012-03-26 11:05:44+00:00)
Title: Fix validateElement to return validation result

`isInvalid` works incorrectly with individual inputs. Problem is in `validateElement` method. It's return value:

```coffeescript
element.data('valid') == false ? false : true
```

is compiled to:

```javascript
return (_ref = element.data('valid') === false) != null ? _ref : {
"false": true
};
````

I don't think that was intended.

I have fixed this and added tests.