bcardarella/client_side_validations — Issue #288: validateElement always returns null
Author: ikonyshev
Created: 2012-03-02 00:39:12+00:00
State: open

```javascript
if (valid) {
element.data('valid', null);
element.trigger('element:validate:pass');
}
}
element.trigger('element:validate:after');
return (_ref = element.data('valid') === false) != null ? _ref : {
"false": true
};
```

Seems it never returns true.
If validation passed we have element.data('valid') set to null, so its comparison to false is always false, so _ref gets false value